Need help with user-defined types

P

Pat Beau

I am trying to add new records to three tables using the following, but I
keep getting "User defined type not defined" error. I get it on the first
statement...HELP!! I have used this code in past and it always worked, but
now I am using Access 2000.

Dim dbs As Database
Dim rst As Recordset
Set dbs = CurrentDb

Set rst = dbs.OpenRecordset("Volume")
rst.AddNew
rst![Landill] = Me![Landfill]
rst.Update
rst.Close
 
M

Marshall Barton

Pat Beau said:
I am trying to add new records to three tables using the following, but I
keep getting "User defined type not defined" error. I get it on the first
statement...HELP!! I have used this code in past and it always worked, but
now I am using Access 2000.

Dim dbs As Database
Dim rst As Recordset
Set dbs = CurrentDb

Set rst = dbs.OpenRecordset("Volume")
rst.AddNew
rst![Landill] = Me![Landfill]
rst.Update
rst.Close


Looks like you do not have a reference to the DAO library.
 

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