Passing name of a contol?

  • Thread starter Thread starter idk
  • Start date Start date
I

idk

Hi All.

I have a simple form with a date field.

I have created another form based on the activex calendar control.

I want to pass the name of the date control on the initial form, to the from
with the activex calendar control so that each click of the activex calendar
control will update the control on the calling form.

I passed the name of the control in the openargs field, but that is a
string, and i cannot figure out how to access the original form without
hardwiring the code, which would make is useless for updating other date
controls on other forms.

HELP.

Ian.
 
Keep the calling form open and put the following code in the AfterUpdate event
of the calendar control:

Forms!NameOfCallingForm!NameOfDateControl = Me!NameOfCalendarcontrol.Value
 
Yes this works... but if i now call the calendar form from some other date
control, it will update the wrong date form.

What i am trying to do is have the calendar form update the form and control
that i pass to it in the openargs field as i open the calendar form.

Any ideas?

Ian.
 
Back
Top