OpenForm in dialog

D

Daniel

Hello,

I am using a notinlist event to open another form in dialog mode to force
the user to make a new entry then update the cbo.

To simplify the user's life i would like to transfer the NewData value into
the newly opened dialog form but the code pauses as soon as the form is
opened. How can I do this? I know I'm missing something really simple.

I swear if my head wasn't screwed on tight...I'd loose it.

Thank you,

Daniel P
 
M

Marshall Barton

Daniel said:
I am using a notinlist event to open another form in dialog mode to force
the user to make a new entry then update the cbo.

To simplify the user's life i would like to transfer the NewData value into
the newly opened dialog form but the code pauses as soon as the form is
opened. How can I do this? I know I'm missing something really simple.


Pass the new data string in the OpenForm method's OpenArgs
argument.

DoCmd.OpenForm "the other form", _
WindowMode:= acDialog, _
OpenArgs:= NewData

Then in the other form's Load event:

Me.sometextbox = Me.OpenArgs
 
D

Daniel

That's a new one for me. Thank you! I always wondered what the openargs was
about.

Daniel P
 

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