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.

Guest_imported

New member
Jan 1, 1970
0
using access 2000 and attempting a very simple piece of code
such as

dim db as database
dim rs as recordse
set db = currentdb
set rs = openrecordset("pupils")
rs.close

I get the error message 13 type mismatch
what's going on?
I've 'hatched' the DAO library in tools/references
Is it a problem with VB for applications not being 'hatched' or is it a problem with 'ADO'

please help a former COBOL programmer, now a science teacher

 
Yesh, diff between 97 ad 2000. Easy fix, make ref to DAO3.6 in tools/references and move it "up the ladder" using the arrows.

Better, see my page. Follow the 97 vs 2000 link. It'll show you how to properly construct ADO code. Also, visit this site:
Tyrone Lumley
augerinn@gte.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top