CLOSE FORM

  • Thread starter Thread starter dk
  • Start date Start date
D

dk

Is there any function oposit to OpenArg.
Eg. After user put some data into Pop-up form how can I pass into
underlaying form. Underlaying form can be frmX or frmY. Both of those having
command
on click docmd.openform "frmAddData", gotonew
Thanks
DK
 
Pass the name of the calling form in the OpenArgs of your popup:
DoCmd.OpenForm "MyPopup", WindowMode:=acDialog, OpenArgs = Me.Name

Then you know whether it was called by frmX or frmY.
 
THNX Allen.
I will try to resolve problem, becouse I already using openarg to pass some
data into Popupform.
I think there is some explanation how to pass multiple data as openargs, so
I think I will resolve problem following Your guidance.
Regards,
DK
 
Yes, pass a ParamArray(), or else use Split() to parse the items.
 

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

Back
Top