Need advices on passing tabbed subform name and control name to fMiniCalendar

B

Bon

Hello all

I have a fMiniCalendar module. If I click the calendar icon, it will
pop-up Mini Calendar.

When the fMiniCalendar is triggered, it will returns the date into a
textbox on the form. This works fine when the form is a parent
(frmMain). But, i got an error "The form/subform cannot be found" if I
put the calendar icon in the tabbed subform (frm_screenpart).

The command button code i tried to refer a control in tabbed subform:
Call fMiniCalendar(, , "frmMain!frm_screenpart", "DOB")

Where frmMain is the parent form, frm_screenpart is the subform in
frmMain and DOB is the text field on the tabbed subform frm_screenpart
that the returned date value goes.

Under debug mode, the error stops at this line:
Forms(FormName)(FieldName) = CombinedDate

How can i make it work? Please give me some advices.

Thanks
 

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