M
mrnatcc
Hi,
I have a form with alot of comboboxes, and one of these have to have
different choices depending on one of the other comboboxes.
Basically i have a table called "Category", and one called "data". The
"data" table stores all the records, and the other tables are just choices in
my comboboxes in my form.
Category table:
1
2
3
4
What i want to achieve is to have the combobox called "categoryunder"'s
control source to be "category_1" if ie. Category is chosen to be "1".
categoryunder's control source should be "category_2" if Category is set to
"2" etc.
I have tables called "category_1", "category_2" etc.
I have tried the following code, which is pretty much equal to my vba skills
Private Sub Category_AfterUpdate()
If Me.Category = "OPUS" Then Me.categoryunder.ControlSource = "category_opus"
End Sub
I hope you can help.
And i have looked through all threads on searches like controlsource and
afterupdate etc. I've done my best not to disturb you
-- All i found was a kind of filter updates (querys etc).
Thanks in advance.
Morten
I have a form with alot of comboboxes, and one of these have to have
different choices depending on one of the other comboboxes.
Basically i have a table called "Category", and one called "data". The
"data" table stores all the records, and the other tables are just choices in
my comboboxes in my form.
Category table:
1
2
3
4
What i want to achieve is to have the combobox called "categoryunder"'s
control source to be "category_1" if ie. Category is chosen to be "1".
categoryunder's control source should be "category_2" if Category is set to
"2" etc.
I have tables called "category_1", "category_2" etc.
I have tried the following code, which is pretty much equal to my vba skills
Private Sub Category_AfterUpdate()
If Me.Category = "OPUS" Then Me.categoryunder.ControlSource = "category_opus"
End Sub
I hope you can help.
And i have looked through all threads on searches like controlsource and
afterupdate etc. I've done my best not to disturb you
-- All i found was a kind of filter updates (querys etc).
Thanks in advance.
Morten