beaniebear
Programmer
Dim db As Database
Dim rec As Recordset
Set db = CurrentDb()
Set rec = db.openrecordset("Employee")
Do Until rec.EOF
'more code to go here
rec.MoveNext
Loop
rec.Close
Sorry this is probably really simple, but can anyone tell me where I am going wrong? I am getting a user defined type not defined in the line 'dim db as Database'. I've not done any development in Access since using Access 97. Is the code different when using access 2002? Any help with this or pointers to a good web site would be very helpful. Thanks.
Dim rec As Recordset
Set db = CurrentDb()
Set rec = db.openrecordset("Employee")
Do Until rec.EOF
'more code to go here
rec.MoveNext
Loop
rec.Close
Sorry this is probably really simple, but can anyone tell me where I am going wrong? I am getting a user defined type not defined in the line 'dim db as Database'. I've not done any development in Access since using Access 97. Is the code different when using access 2002? Any help with this or pointers to a good web site would be very helpful. Thanks.