Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Left join and Access- E_Fail error


Message #1 by "Louise" <lgreally@c...> on Thu, 15 Feb 2001 10:09:17
Hi Im getting this error

Microsoft Cursor Engine error '80004005' 



Data provider or other service returned an E_FAIL status



with this statement

sql = "SELECT unit.unit_id, unit.unit_title,unit.module_id,  

assessment.assessment_id, assessment.assessment_title "&_

	  "FROM [unit] LEFT JOIN assessment ON (assessment.unit_id = 

unit.unit_id) "&_

      " GROUP BY unit.unit_id, unit.unit_title, unit.module_id, 

assessment.assessment_id, assessment.assessment_title  HAVING ( 

((unit.module_id) = "&varModuleID&")  )"



its something to do with the assessment.assessment_id being an autonumber 

as, if I exclude this field from the statement or change the key to a 

Number datatype  it works fine.

Incidentally the error is given on the line...



myRS.movenext



any ideas please??

  Return to Index