A
Andy Stevenson
Hi,
I'm a little stumped... I know I can open a form in dialogue mode & VBA will
patiently sit & wait for the form to close before carrying on. But I can't
get this to happen with a subform.
What I'm trying to do is this:
The user clicks a command button on the main form & the onclick event loops
through a list of invoices, picking up items from a table as it goes. When
it gets to an item on the invoice that it can't find in the table, a sub
form is made visible & given the focus, I need the VBA loop to pause while
the user fills in the form then clicks a command button on the subform that
hides it & allows the loop to continue.
I had hoped that setting the subform to Modal & Popup would do the trick,
but it seems not. The loop refuses to pause.
Any ideas greatly appreciated.
Thanks.
Andy.
I'm a little stumped... I know I can open a form in dialogue mode & VBA will
patiently sit & wait for the form to close before carrying on. But I can't
get this to happen with a subform.
What I'm trying to do is this:
The user clicks a command button on the main form & the onclick event loops
through a list of invoices, picking up items from a table as it goes. When
it gets to an item on the invoice that it can't find in the table, a sub
form is made visible & given the focus, I need the VBA loop to pause while
the user fills in the form then clicks a command button on the subform that
hides it & allows the loop to continue.
I had hoped that setting the subform to Modal & Popup would do the trick,
but it seems not. The loop refuses to pause.
Any ideas greatly appreciated.
Thanks.
Andy.