CLOSE FORM

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
 
A

Allen Browne

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.
 
D

dk

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
 
Top