D
Dennis Snelgrove
Is there a command or method that will cause program execution to stop in a
combo-box until the user has made a choice, then the programming will move
on? I've got a form with several levels of a
Department/Division/Section/Location hierarchy, each level consisting of a
"Many-to-Many" relationship. What I've got working so far is for a user to
choose a Location (the most detailed level of the tree) and the VBA will
auto-fill each successive level if that level only has one matching record.
The idea is that about 75%-80% of the relationships are in reality
"One-to-Many" and since I'm an incredibly lazy encoder, it made more sense
to start at the most detailed level and let the computer do the work of
back-filling the previous levels of the hierarchy whenever possible. In
those instances of a level belonging to more than one previous level (a true
Many-to-Many) it would do a DropDown on the level's combo-box, wait for the
encoder to chose the appropriate record, then continue on. As it stands now,
I've got all this working, but I've got to Tab through each of the
combo-boxes in order to ensure that Access will stop if a combo-box has more
than one record to chose from. Is there a way to cause the combo-box to
pause until the encoder has made a choice, then move on within the same
Subroutine, rather than using a bunch of separate Event Procedures?
Thanks for any help...
Dennis
combo-box until the user has made a choice, then the programming will move
on? I've got a form with several levels of a
Department/Division/Section/Location hierarchy, each level consisting of a
"Many-to-Many" relationship. What I've got working so far is for a user to
choose a Location (the most detailed level of the tree) and the VBA will
auto-fill each successive level if that level only has one matching record.
The idea is that about 75%-80% of the relationships are in reality
"One-to-Many" and since I'm an incredibly lazy encoder, it made more sense
to start at the most detailed level and let the computer do the work of
back-filling the previous levels of the hierarchy whenever possible. In
those instances of a level belonging to more than one previous level (a true
Many-to-Many) it would do a DropDown on the level's combo-box, wait for the
encoder to chose the appropriate record, then continue on. As it stands now,
I've got all this working, but I've got to Tab through each of the
combo-boxes in order to ensure that Access will stop if a combo-box has more
than one record to chose from. Is there a way to cause the combo-box to
pause until the encoder has made a choice, then move on within the same
Subroutine, rather than using a bunch of separate Event Procedures?
Thanks for any help...
Dennis