K
kellmich
I have been attempting to establish a remote connection to another database
on my hard drive using a DIM statement within a form module (This is
supported by two prominent reference manuals - Access 2007 Inside Out, and
ACCESS VBA programming for absolute beginners. The Dim statement is as
follows:
Dim RemoteConnection As ADODB.Connection
When it is located in an event subroutine (i.e. the load event) I get the
following message:
Compile Error: User-Defined Type not defined
The debugger then highlights the above DIM statement.
A much longer message occurs if I move the DIM statement to the general
declarations area of the form module. However, It amounts to the same thing
- "User Defined Type not defined".
Has anyone else out there met and solved this problem? Help!
on my hard drive using a DIM statement within a form module (This is
supported by two prominent reference manuals - Access 2007 Inside Out, and
ACCESS VBA programming for absolute beginners. The Dim statement is as
follows:
Dim RemoteConnection As ADODB.Connection
When it is located in an event subroutine (i.e. the load event) I get the
following message:
Compile Error: User-Defined Type not defined
The debugger then highlights the above DIM statement.
A much longer message occurs if I move the DIM statement to the general
declarations area of the form module. However, It amounts to the same thing
- "User Defined Type not defined".
Has anyone else out there met and solved this problem? Help!