Another Combobox Issue

Gilrucht

Registered User.
Local time
Today, 10:55
Joined
Jun 5, 2005
Messages
132
I have a combobox that looks up casetypes in a lookup table. I coded the after event property to open up the form for the form selected. so if the user selects autoaccidents the autoaccident form is opened. The combobox is also bound to the caserypeid field so that the current form will save the id for the case type chosen. My problen is the event won't fire the code and open the newform when the combobox is bound. If I unbind it it works perfectly. Is there a different property I can use to fire the code after the user makes his choice or do I have to find another way to open my form ?
 
Gil:
Bound controls fire events too so it must be something else.
1) Make sure the relevant line on the "Events" tab of the control's property sheet shows [Event Procedure]. Cutting and pasting a control erases this.
2) Make sure you haven't inadvertantly renamed the control instead of changing it's control source, since both properties are on the first line of different property sheet tabs, and are commonly the same.
Hope it's something this easy,
Mark
 
Well, It was something easy but I don't understand. When the bound combo first didn't work I made a new, unbound, combo, copied the code, just changed the name of combo in the new code and tested it. It ran fine. Thats when I made a post. After checking your ideas and finding everything checked out, just for the heck of it I bound the second combo box and it still worked so I'm really confused . the same code works on one combobox bound to field1 but doesnt work on combobox2 bound to field 2???????? Not going to worry about it though. Problem is solved. Thanks. You pointed me in right direction.
 

Users who are viewing this thread

Back
Top Bottom