Hi,
I'm trying to open an ODBC workspace in a sub, declaring the workspace as follows:
Dim wrkMain as Workspace
And I get the following error message when I run the code:
"A module is not a valid type"
I am running the sub from a button on a form, have tried running it also as a stand alone module, but still no joy. Removing the 'Option Explicit' declaration stops the problem, but I don't want to do this for other reasons. Can anyone help!!!!!
I'm trying to open an ODBC workspace in a sub, declaring the workspace as follows:
Dim wrkMain as Workspace
And I get the following error message when I run the code:
"A module is not a valid type"
I am running the sub from a button on a form, have tried running it also as a stand alone module, but still no joy. Removing the 'Option Explicit' declaration stops the problem, but I don't want to do this for other reasons. Can anyone help!!!!!