passing values from a dialog box

G

Guest

I am trying pass values from a dialog box back to the main form. I am not
very experience in Access programming but I believe this can be done. My main
form has a combo box and depending on the selection in that combo box the
user is required to answer one of two questions where or who. So I was going
to use a dialog box depending on which selection they chose to ask simply
where or who and then passes that value back to the original form. Actually
both of these answers go back into one general field called "details" I have
looked around at various examples but I cant seem to get the coding to work,
probably my lack of knowledge. Any help would certainly be appreciated. I am
using Access 2003.
 
G

Guest

If the data is going back to a field on your form, why not just use a combo
on that field?

Steve
 
T

tina

it would help if you had posted the coding you're working with, so we get a
better idea of just what you're doing. it's not clear whether you're using a
form in dialog mode as your "dialog box", or an Inputbox() function. two
very different solutions.

if you're using an Inputbox() function, it's simple enough - just assign the
return value of the function to a bound control in the form, as

Me!ControlName = InputBox("who or where?")

hth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top