M
Maury Markowitz
I have a number of instances where I'm using InputBox or MsgBox to display a
modal question/answer dialog. However I'd really like to make these much more
customized, using Access forms that I can control with code in the form. But
I'm at a loss how to set up and return values from such a form.
For instance, my app stores e-mail addresses for our suppliers in
"tblContacts". Currently when someone sends an order to the back office for
processing, it looks to see if there's an address in tblContacts for that
supplier, and if so, displays an InputBox with that address asking if the
user would like to send a confirm e-mail to them.
But what I'd really like to do is have more than one address, and let the
user pick one or more (check boxes would be good). That would make the system
much easier to use, and I can even do things like apply logic to select the
proper default address on a per-order basis (ie, orders for widgets go to
Bob, thingamabobs to Jim).
But there's two problems:
1) when you use Modal you loose control over the code and can't poke values
into the form from the opener (I think)
2) I can't figure out how to easily return values
Ideally I'd like to do something as simple as...
ret = OpenMyBox("Bongo Inc.")
Maury
modal question/answer dialog. However I'd really like to make these much more
customized, using Access forms that I can control with code in the form. But
I'm at a loss how to set up and return values from such a form.
For instance, my app stores e-mail addresses for our suppliers in
"tblContacts". Currently when someone sends an order to the back office for
processing, it looks to see if there's an address in tblContacts for that
supplier, and if so, displays an InputBox with that address asking if the
user would like to send a confirm e-mail to them.
But what I'd really like to do is have more than one address, and let the
user pick one or more (check boxes would be good). That would make the system
much easier to use, and I can even do things like apply logic to select the
proper default address on a per-order basis (ie, orders for widgets go to
Bob, thingamabobs to Jim).
But there's two problems:
1) when you use Modal you loose control over the code and can't poke values
into the form from the opener (I think)
2) I can't figure out how to easily return values
Ideally I'd like to do something as simple as...
ret = OpenMyBox("Bongo Inc.")
Maury