Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Conversion / February 2004

Tip: Looking for answers? Try searching our database.

Conversion to Access Project- currentdb

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
blinton25 - 06 Feb 2004 07:20 GMT
Hi,

How is everyone today?

I am in the process of converting an Access database to an
Access Project. The data sits in a SQL server database
while reports/queries/forms remain in Access.

I had:

Option Compare Database
Option Explicit
Public Sub Command20_Click()
Dim db As Database

Set db = CurrentDb()

but changed this to:

Option Compare Database
Option Explicit
Public Sub Command20_Click()

Dim db As ADODB.Connection

Set db = CurrentProject.Connection

which works ok.

Now later in the code I have:

Private Sub Command1_Click()

Dim db As ADODB.Connection

which gives me the following error:

'Compile error: User-defined type not defined'

I am not sure why this is happening, any suggestions?
Douglas J. Steele - 07 Feb 2004 11:46 GMT
You sure you didn't mistype it the second time?

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(No private e-mails, please)

> Hi,
>
[quoted text clipped - 36 lines]
>
> I am not sure why this is happening, any suggestions?
blinton25 - 08 Feb 2004 03:52 GMT
Hi,

I had tried a copy and paste and still got the same error.

>-----Original Message-----
>You sure you didn't mistype it the second time?
[quoted text clipped - 41 lines]
>
>.
Douglas J. Steele - 08 Feb 2004 12:24 GMT
The only thing I can think of is to try doing a Compile on your project to
see whether there's some other error that's causing Access to behave this
way. With any code module open, Compile is the top option on the Debug menu.

You might also check that you haven't got a problem with your references.
Again, with any code module open, select Tools | References from the menu
bar and examine all of the selected references, looking for any that have
"MISSING:" in front of them.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(No private e-mails, please)

> Hi,
>
[quoted text clipped - 46 lines]
> >
> >.
blinton25 - 20 Feb 2004 22:16 GMT
Hi,

Thanks for the suggestions, will try and let you know what
happens

>-----Original Message-----
>The only thing I can think of is to try doing a Compile on your project to
[quoted text clipped - 58 lines]
>
>.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.