Writing from Excel to Access DB

B

Bob Kaku

I want to be able read rows from a spreadsheet and insert into a MS Access
database. I'm having a problem in just declaring object variables as
follows:

Dim db As DAO.Database
Dim rs As DAO.Recordset

I get a compile error on both of these declaration statements. The error
message is "User-defined type not defined". Do I have pre-define the
"Database" and "Recordset" data types?
 
M

merjet

Use the menu Tools | References to check
Microsoft DAO x.x Object Library.

HTH,
Merjet
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top