Creating a new table in code

roger_anderson

New member
Local time
Today, 15:22
Joined
Nov 26, 2001
Messages
5
I'm a newby to VBA. I have tried to create a new table from within a module following the code in the help file. I get a compile error "User-defined type not defined" to the code Dim dbs As Database. Where should I be defining what?
 
If you are using Access2000 then you will need to use ADO code or dimension your code using DAO.

Dim dbs As DAO.Database

You will also need to open any code page and select Tools > References and find 'Microsoft DAO 3.6 Object Library' and check it.
 

Users who are viewing this thread

Back
Top Bottom