Pass name of control in Openargs and access/set values ??

G

Guest

Use Me.ocxCalendar.value = Forms(strFormName).Controls
(strCtrlName).value

This will set the date on the calendar control to the
value entered into your control.
-----Original Message-----
I have a calendar routine (a separate form) for filling
in 'from' and 'to' dates. I a pass the control names in
openargs, then I need to:
(1) Access the current value to set the calendar
(2) Reset the current value when the calendar is closed

How would I do this, I am passing the control names but I
can only access them as strings and 'stringname.value'
gives me an error. How do I refer to them as controls?
 

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