comdlg.ocx

MarionD

Registered User.
Local time
Today, 04:02
Joined
Oct 10, 2000
Messages
425
I am now using Access 2016 in Windows 10 on a 64 bit system.

I used a browse for file Code on my Access 2013/Windows 7 before where I had a form with a common dialog control to browse for a file (to reconnect my back end database).

Now it is not working. Have tried:
Reinstalling and registering the comdlg32.ocx in the syswow64.
Have tried to delete and reinput the control on the form but I get the error message that the ole server is not registered and should be reinstalled.

I know this is a pretty old way of doing things... but it worked so well and I don't know what to replace it with. Any Ideas would be most appreciated
 
Unfortunately that reference library was never updated for 64-bit and I believe isn't supplied with 64-bit Windows 10.

So you will need to rewrite your code to get the same functionality in another way. Luckily, its normally fairly easy to do so

It was one of the reasons why I updated this old utility by David Crake: https://www.access-programmers.co.uk/forums/showthread.php?t=295174. If you compare the original MDB file with my replacement ACCDB version, it will show you how to do what you want. Both contain code for a Browse dialog.
 
Last edited:
I used a browse for file Code on my Access 2013/Windows 7 before where I had a form with a common dialog control to browse for a file (to reconnect my back end database).
The easiest solution is probably to replace the external control with the built-in FileDialog from Office/Access.
 

Users who are viewing this thread

Back
Top Bottom