Common Dialog Control

sagsh

Registered User.
Local time
Yesterday, 19:59
Joined
Jul 18, 2004
Messages
19
Hi

I have a problem with the attached database - basically I have copied over from another access database some code for a field on a form on this database. The code is for a common control dialog.

When you click the command button next to the picture entry box a dialog box opens and I can select a file - however nothing updates the value of the field and access hangs and the only way to exit is through clicking the X close application - which shutsdown access.

Any body got any ideas what could cause this??

Any help greatly appreciated!
Thanks
sagsh :confused:
 

Attachments

Last edited:
Personally I wouldn't use the control (causes problems with different versions) as I would use Windows to do the same thing as one of the examples on the following thread demonstrates (click here)
 
I had all kinds of troubles distributing a DB that used the ActiveX control for Common Dialog box. Then I read this thread about 2 years ago and switched to the API call and All was well - soooooo


API worked for me!!!!
 
Windows API "Find" Common Dialog (CD)
I see a lot of programmers in Access discussion forums recommend using Window's API CD and I'm perticularly interested in information and/or examples of the usage for the "Find" CD available through API. I've searched many Access forums and didn't find anything. The MS Knowledge base is very criptic and I was hoping that someone in this forum would have a sample DB that shows how this works. I want to do a search and replace through a rich text field.

Thanks,
PC
 
Last edited:
I have posted a couple of examples here. One uses the ActiveX Custom Dialog control and one uses the Windows Custom Dialog. I'd recommend the latter due to the problems the former can cause over different versions of Access.
 
Windows API "Find" Common Dialog (CD)
I appreciate your reply. Those are very good examples for opening files. If possible, I was hoping someone had an example specific to my question.

Thanks,
PC
 
What kind of "find" are you looking for? - Do you have a screen shot of the dialog box?
 

Users who are viewing this thread

Back
Top Bottom