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

type mismatch error on opening a table.

Status
Not open for further replies.

proggy

Programmer
Apr 21, 2002
46
US
i have this code as
Set rs = db.OpenRecordset("Userinfo", dbOpenTable)
it gives me an error as type mismatch..
can anyone please help me ??
 
Hi,

I'm not sure if this is of any help but I had a similar problem with a recordset and I just added a reference to
"Microsoft DAO 2.5/3.5 compatibility library" in Tools/References... in Module view.

Hope this helps you out Salvatore Grassagliata
 
If this is Access 2000, it is probably due to not qualifying the recordset object.

DAO.Recordset should do it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top