combo box with event (1 Viewer)

kitty77

Registered User.
Local time
Today, 01:15
Joined
May 27, 2019
Messages
267
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

Forum Troll
Local time
Today, 00:15
Joined
Oct 6, 2019
Messages
2,884
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

You've got your good things, and you've got mine.
Local time
Today, 01:15
Joined
May 21, 2018
Messages
3,387
Does the event property still say "[Event Procedure]" in the double click?
 

kitty77

Registered User.
Local time
Today, 01:15
Joined
May 27, 2019
Messages
267
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

You've got your good things, and you've got mine.
Local time
Today, 01:15
Joined
May 21, 2018
Messages
3,387
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