Putting values from 1 form into another

  • Thread starter Thread starter Nath
  • Start date Start date
N

Nath

Hi.

I have one form (V_JObs) and another (V_Calendar) i wish
to put one button on the v_jobs form that opens
v_calendar. When the calendare is clicked i want one of
two controls (either start_date or end_date) which ever is
selected to take the value from the calendar.

Cany anyone help

TIA

Nath.
 
As long as you ensure that the calendar will only be opened when one of the
two mentioned controls has the focus and that the focus won't change while
the calendar is open (i.e. open it with the acDialog window mode argument)
then you could refer to the control on the calling form by:

Forms!V_Jobs.ActiveControl = (the date from the calendar form)
 
Back
Top