combo box with event (1 Viewer)

kitty77

Registered User
Joined
May 27, 2019
Messages
161
I have a textbox that has an event when you double click. It checks if a file or folder exists. It works perfect.
I would like to change the textbox to a combo box but when I do that, the event will not work.

Any ideas?

Thanks.
 

vba_php

Banned
Joined
Oct 6, 2019
Messages
1,982
well just saying "it doesn't work" isn't that helpful, kitty. I don't believe controls retain events that are written behind them if they are changed to another control through the interface of access. did yours retain the event code? so, to the question, you got anything more than "it won't work"?? c boxes have double click events. (just trying to pinpoint....
 
Last edited:

MajP

Access MVP
Joined
May 21, 2018
Messages
2,341
Does the event property still say "[Event Procedure]" in the double click?
 

kitty77

Registered User
Joined
May 27, 2019
Messages
161
I see what happens... When you change it, the Event Procedure goes away. You have to set it again and then the code is there again. Damn, something so simple.
My bad...
 

MajP

Access MVP
Joined
May 21, 2018
Messages
2,341
When you change it, the Event Procedure goes away.
I believe you mean the "event Property" was cleared out not the "event Procedure". The event procedure is the code in the form.

 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top Bottom