Hello, we recently upgraded Access from Access 2000 to Access 2010 (please forgive us for not upgrading intermediate versions of Access but we are a non-profit organization with limited funds) and I am encountering some problems which I am hoping you can help me with.
I was getting a ‘missing utility.mda’ error but managed to correct it by unchecking the ‘Utility.mda’ check-box from the References options of the Tools menu. However, now when I run the program I get the following error…
Compile error:
User-defined type not defined
The code it is referring to looks like this…
Private Sub Form_Load()
Dim dbs As Database
Set dbs As CurrentDb
For some reason it does not like my ‘dbs’ reference. This code worked fine with Access 2000, can you tell me how to fix it so it will run under Access 2010?
Also, I’m sure I will be getting other errors as I go along, is there a link you can point me to which might help me correct other upgrade errors so I don’t have to bother you all the time. Thank you for your time.
I was getting a ‘missing utility.mda’ error but managed to correct it by unchecking the ‘Utility.mda’ check-box from the References options of the Tools menu. However, now when I run the program I get the following error…
Compile error:
User-defined type not defined
The code it is referring to looks like this…
Private Sub Form_Load()
Dim dbs As Database
Set dbs As CurrentDb
For some reason it does not like my ‘dbs’ reference. This code worked fine with Access 2000, can you tell me how to fix it so it will run under Access 2010?
Also, I’m sure I will be getting other errors as I go along, is there a link you can point me to which might help me correct other upgrade errors so I don’t have to bother you all the time. Thank you for your time.