When I compile a MS Access 2003 app on Windows 7 SP1 64bit and launch it in Windows 7 SP1 32bit the Microsoft Common Dialog Control 6.0 (SP3) path changes from C:\Windows\SysWOW64\comdlg32.ocx to \\shared\access\comdlg32.ocx which is the shared drive the app launches from for Windows 7 SP1 32bit users.
I need the reference on 32bit machines to be: C:\Windows\System32\comdlg32.ocx
The 32bit machine errorors out on : Dim Cnxn As ADODB.Connection But when the Common Dialog Control is referenced correctly by downloading the app to the 32bit machine, browsing for the comdlg32 file, adding it as a reference, and recompiling, the app works fine on the 32bit pc.
Set Cnxn = New ADODB.Connection
What does the Common Dialog Control have to do with ADODB?
I don’t think I use the Microsoft Common Dialog Control anywhere. I will do more testing…
The reference has nothing to do with ADODB.
The test to see if you are using it is simple: remove the reference. If the project fails to compile, then the reference was in use.
If you are not using the reference, remove it, and your problem is solved. If you are using the reference, you can replace its functionality with Windows API calls, as Arnoldiusss suggested.