Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anybody know whats wrong with this line? 1

Status
Not open for further replies.

Frank72

Technical User
Nov 13, 2001
57
IE
hows it going?

Set Rst1 = CustDb.OpenRecordset("SELECT firstName , secondname , a1 , a2 , customerid From dbo_tblcustomer" & "ORDER BY firstname", dbSeeChanges)

error msg "invalid argument"

any help appreciated

thanks

frank
 
Set Rst1 = CustDb.OpenRecordset("SELECT firstName , secondname , a1 , a2 , customerid From dbo_tblcustomer" & " ORDER BY firstname", ,dbSeeChanges)

dbSeechanges is an "Options" value not a "Type" value so has to be third parameter.

Also probably need space between "dbo_tblCustomer" and "ORDER".



M.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top