T
tlyczko
I read about limiting combo boxes' list data, for example, limiting the
list of values in the second combo based on values in the first combo,
and I found the Dev Ashish site link.
I have two combos based on lookups of very small tables, Audit
Descriptions and Programs.
Combo 1: Audit Descriptions has Comprehensive, Fire Safety, Medical,
MSC, Snapshot.
Combo 2: Programs has A, B, C, D, E, F, G, H (for example).
Not every single program can get all the different kinds of audit
descriptions.
For example Program A can have all five kinds of audits, Program B can
only have Comprehensive or Fire Safety, Program C can only have
Comprehensive or Medical, Program D can only have all but Snapshot,
etc. etc.
It can also be expressed the other way, for example, Comprehensive can
be for Program A, B, C, but not D, etc. etc.
Is there any way with this information I can limit the list of Combo 2
based on Combo 1??
Is it better to ask the end user for the program first, then limit the
audit descriptions??
Should I write code in Combo 2 AfterUpdate event to examine the program
to audit description correlation??
Should I add fields to the lookup tables to facilitate the combo box
filtering??
tblAuditDescriptions has:
Comprehensive
Fire Safety
Medical
MSC
Snapshot
tblPrograms has:
A Apple
B Boy
C Cat
D Dog
E Egg
F Fur
G Games
H Hats
Thank you, Tom
list of values in the second combo based on values in the first combo,
and I found the Dev Ashish site link.
I have two combos based on lookups of very small tables, Audit
Descriptions and Programs.
Combo 1: Audit Descriptions has Comprehensive, Fire Safety, Medical,
MSC, Snapshot.
Combo 2: Programs has A, B, C, D, E, F, G, H (for example).
Not every single program can get all the different kinds of audit
descriptions.
For example Program A can have all five kinds of audits, Program B can
only have Comprehensive or Fire Safety, Program C can only have
Comprehensive or Medical, Program D can only have all but Snapshot,
etc. etc.
It can also be expressed the other way, for example, Comprehensive can
be for Program A, B, C, but not D, etc. etc.
Is there any way with this information I can limit the list of Combo 2
based on Combo 1??
Is it better to ask the end user for the program first, then limit the
audit descriptions??
Should I write code in Combo 2 AfterUpdate event to examine the program
to audit description correlation??
Should I add fields to the lookup tables to facilitate the combo box
filtering??
tblAuditDescriptions has:
Comprehensive
Fire Safety
Medical
MSC
Snapshot
tblPrograms has:
A Apple
B Boy
C Cat
D Dog
E Egg
F Fur
G Games
H Hats
Thank you, Tom