Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS Access open selection Form and use Value in prior Form

Status
Not open for further replies.

frobo

Programmer
May 13, 2005
14
CH
hello together

how it's possible to open a form (popup, bound, so it sticks until the user closes it), let the user choose a value and then OK and have the chosen value used in the prior form?

tia
frobo
 
Open the form as modal (acDialog)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Well where is this constant used?

And my other question is:
How I can let the user choose from a dropdown on the modal form and use the value in my vba code on another form?

tia
frobo
 
i got it to work by having a hidden field in the mainform, but now, when i use the modal form to let the user choose a value, the code still goes on, not waiting for the user input.
but I need the value in the ongoing code.
any idea?

tia
 
As stated by PHV, use the acDialog option when opening the form.

[tt]docmd.openform "myform",,,,,acdialog[/tt]

Roy-Vidar
 
thanks alot! problem solved :)
especially thanks for the fast replies!

love u guys ;P
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top