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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OpenRecordset Question 1

Status
Not open for further replies.

jasonphillipstx

Technical User
Dec 10, 2001
43
US
The following line works
Code:
Set rst = db.OpenRecordset("visitorreportrecipients", , dbSeeChanges)

the following line gives me an error stating that I need to use the dbSeeChanges option for a table on SQL server that has an identity.
Code:
Set rst = db.OpenRecordset("select * from visitorreportrecipients;", , dbSeeChanges)

I need to use the one with the sql statement. I have tried every which way to no avail. Any help is appreciated.
 
Are you opening this against an SQL server backend? According to help, the dbSeeChanges only works with a Microsoft Jet dynaset type recordset so that may be the issue. You can try adding the type argument, dbOpenDynaset, and see if that helps. The default type is a table type when the argument is left blank.

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top