User type not defined Newbie vba

S

Stefan

I am trying to define a variable as a table

Dim Table As New Table

I get this message when I try to compile

User defined type not defined.

I have tried using the references box to select from the
object libary with no luck.

Any Help?? Thanks in advance
 
H

Herman

Originally posted by Stefan
I am trying to define a variable as a table

Dim Table As New Table

I get this message when I try to compile

User defined type not defined.

I have tried using the references box to select from the
object libary with no luck.

Any Help?? Thanks in advance



Try adding the msadox.dll to your references....
 
J

John Vinson

I am trying to define a variable as a table

Dim Table As New Table

I get this message when I try to compile

User defined type not defined.

Well... that's because there is no such Type as Table. TableDef yes,
but not Table.

Could you explain what you're trying to accomplish?
 
S

Stefan

-----Original Message-----


Well... that's because there is no such Type as Table. TableDef yes,
but not Table.

Could you explain what you're trying to accomplish?


.
I actually bought Sams teach yourself access 2002
programming and was doing one of the lessons to create a
new table and define columns with code.
 

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