Transfer data from one form to the other.

A

ANStech

I have a form with a command button. The button opens a popup form with two
calenders and an O.K. button. I want to set the calenders,click O.K. and use
that data to fill a field in the original form.(theone with the command
button.)
 
V

Van T. Dinh

Use the cmdOK_Click Event to run code like:

Forms!frmCalling!txtStartDate = Me.calStartDate.Value
Forms!frmCalling!txtEndDate = Me.calEndDate.Value

I am fairly you can omit ".Value" from the above.
 
Top