Dan Waters
dwaters at usinternet.com
Sun May 7 19:28:03 CDT 2006
Brian, You'll need to call the calendar as a subform, and yes, the syntax is different. Let's say that your Main form is called frmMain. And let's say the calendar form name is frmCalendar. And let's say the subform object your put the calendar form in is called subCalendar. And the control you're looking for on frmCalendar is txtCalendarDate. Dim txt as TextBox Set txt = Forms("frmMain").subCalendar.Form.txtCalendarDate '-- OR (if you are setting this reference in the frmMain's code) Set txt = Me.subCalendar.Form.txtCalendarDate '-- OR Set txt = subCalendar.Form.txtCalendarDate Hope this Helps! Dan -----Original Message----- I have been using the minicalendar with no problem until I took the form it was on and made it into a subform. Now I can't get Access to find the subform and the control I want the date to go to. Below works great when [f builder schedule] is the main form, but when I use it as a subform, it doesn't work. I will no longer need it as a main form. Private Sub Command87_Click() 'Call the MiniCalendar to set the date Call fMiniCalendar(, , "[f builder schedule]", "[ Plan Rev Date]") End Sub Please help with syntax Brian -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com