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

OpenRecordset error

Status
Not open for further replies.

djj55

Programmer
Feb 6, 2006
1,761
US
Hello, Access 2002
I have a table "tblTempHistory" that I ultimately want to add a new record to, but I can not get past the SET statement.
Code:
Dim rs As Recordset
[COLOR=red]Set rs = CurrentDb.OpenRecordset("tblTempHistory", dbOpenDynaset)[/color]
I get the error
Type missmatch
.
any suggestions?
Thank you,
djj
 
Thank you!!! That was the problem, although as usual MS did not mention that in their examples/help.
Thanks again,
djj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top