I have a Public function running through autoexec macro, so every time I opem my Acess database I get this error. The error says:
Compile Error: User-Defined Type not Defined.
In the debugger the line Dim dbs As Database is high-lited. Here is the top of my code:
Public Function RunOncez()
Dim dbs As Database <- This is high-lited
Dim rst As Recordset
Dim strSQL
Set dbs = CurrentDb
Now, I am no VB guru, in fact I am just starting to learn about it, but this looks like just about every example that I have seen in MS Help. What on earth is the debugger trying to tell me? Thanks a lot to anyone who helps straighten this out.
Compile Error: User-Defined Type not Defined.
In the debugger the line Dim dbs As Database is high-lited. Here is the top of my code:
Public Function RunOncez()
Dim dbs As Database <- This is high-lited
Dim rst As Recordset
Dim strSQL
Set dbs = CurrentDb
Now, I am no VB guru, in fact I am just starting to learn about it, but this looks like just about every example that I have seen in MS Help. What on earth is the debugger trying to tell me? Thanks a lot to anyone who helps straighten this out.