Putting values from 1 form into another

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

Wayne Morgan

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)
 

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