Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo box event only works once

Status
Not open for further replies.

EddyLLC

Technical User
Mar 15, 2005
304
US
I have a combo box whose value is derived from a value list. Behind the After Update I have an event procedure that references the value in the combo box with data in another table. The first time I put data in the combo box the code executes fine. If I then immediately change the value in the combo box the event procedure does not fire at all. I put a stop in the code behind the event procedure to verify this.

Why would the event procedure only work once? Thanks
 
Thanks for the response. I did try the requery. Same result, maybe because the data for the combo box is provided from a value list and not a query? I don't know but same result. The event won't fire a second time unless I leave the form and come back.
 
can you provided the code that supplies the rowsource?

and what event are you using?
 
These are the values enumerated in the row source. There are more listed but you get the idea. There are two columns with headings so the first two entries are headings.
"Number";"Title";"1";"Shadow Divers";"2";"Alice in Wonderland";"3";"The Godfather"

I am using the AfterUpdate event. I tried the On Change event but if there was a value in the combo box and I deleted it the code ran but believed there was data in the combo box when in fact I deleted it.
 
Bingo! Works great. Thanks for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top