Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ODBC Workspace

Status
Not open for further replies.

Muttley

MIS
Nov 22, 2000
50
US
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!!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top