Passing name of a contol?

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

PC Datasheet

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

Forms!NameOfCallingForm!NameOfDateControl = Me!NameOfCalendarcontrol.Value
 
I

idk

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.
 

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