Solved Multie Cascading combo box based on set values (1 Viewer)

crazy_ivan_1

New member
Local time
Tomorrow, 06:43
Joined
Jun 7, 2020
Messages
23
Hi,

I'm trying to create a rating system of sorts.

I have 5 fields with a combo lookup. Each lookup has values 1-5

I am trying to get the comboboxes to update based on the values of the other fields.

E.g.

Cmb1 has number 4 selected
So cmb2 to cmb5 will only show numbers 1,2,3 and 5
Then cmb2 has number 2 selected
So cmb 3 to cmb5 will only shows numbers 1,3,5

And so on.

I'm guessing that I need an after update of cmb1 I would need a requery of the values to eliminate the selected value, but I can't figure out how to do it.

Any suggestions or help would be most appreciated.

Thanks
 

Gasman

Enthusiastic Amateur
Local time
Today, 21:43
Joined
Sep 21, 2011
Messages
14,265
I would look at deleting the entry in the rest of the combos when selected in the afterupdate event as you mention.
As you would know the order, you could just delete that entry, rather than walking through the items.?

 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 04:43
Joined
May 7, 2009
Messages
19,230
the combos are based on a table tbl_rating.
see the demo.
 

Attachments

  • rating.zip
    32.3 KB · Views: 129

crazy_ivan_1

New member
Local time
Tomorrow, 06:43
Joined
Jun 7, 2020
Messages
23
the combos are based on a table tbl_rating.
see the demo.
Wow...that works perfectly.

Thanks

I was having a look at your code.

If I wanted to do an additional set of comboboxes unrelated to the first, would I need to recreate the public function with the alternate combobox names?
 

Users who are viewing this thread

Top Bottom