Continuous Form Issue with comboboxes

chrisjames25

Registered User.
Local time
Today, 08:51
Joined
Dec 1, 2014
Messages
404
I have a continuous form with all of the comboboes and textboxes bound to a field in a table.

I have a combobox for choosing the category and when i choose the category it filters down my options in my variety combobox to only those within that category.

Works fine. If i change the category i have an afterupdate event that removes the variety entry.

Code:
me.cbo_variety.requery
me.cbo_variety

This works fine when not on continuous forms but now using them if i use this code it deltes the variety form all the entries above the current entry.

No idea why this is happening. How do you make it so it only alters the current record?

Cheers in advance
 
The .requery is all you need.
You don't need the 2nd line.

If the cbo is unbound, all entries on continuous form will match.
 
Hi CJ. THanks very much. That helped alot and now allows me to do what i wanted to achieve.
 
Hai,
The actual time and effort took to create this wonderful article were really great and would like to read this blog regularly to get more important stuff.
 

Users who are viewing this thread

Back
Top Bottom