Grafixx01
Aug 12 2006, 08:04 PM
Ok, so I kind of figured out how to get my date button to work so that it will put the selected dates into the txt.(name) boxes on the form. Well, at least I figured out the coding for it.
Now the problem I can't figure out is how to define a parent form? The form that would be the parent form is frmTaskLog
Anyone?
Aquadevel
Aug 12 2006, 08:11 PM
Graf,
Can you provide a lil' more info on what you are trying to do ?
Even post the database <mnus any sensitive data> would help.
good luck,

Aqua
dashiellx2000
Aug 12 2006, 08:41 PM
Grafixx01
Aug 13 2006, 11:32 AM
This is the issue. The command button is there and when you select the date and click "Insert Date" I want it to insert the selected date into a txtBox on a main form called, frmTaskLog.
Code:
Private Sub cmd_Insert_Date_Click()
Me.Visible = False 'changed
Forms(strParentForm).Controls(strTextBox).SetFocus 'changed
Forms(strParentForm).Controls(strTextBox).Text = CDate(calCalendar.Value) 'changed
DoCmd.Close acForm, Me.Name, acSaveNo 'changed
End Sub
R. Hicks
Aug 13 2006, 11:37 AM
To reference a control in the parent (main) form from the subform .. use:
Me.Parent.YourControlName =
Where "YourControlName" is the actual name of the control being referenced in the parent form ...
RDH
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.