Using Access 2000
I have a form, frmAttendance, from which I can call frmCalendar, and feed the Calendar date value selected back to a text box called "txtMeetingDate" on frmAttendance.
The calendar control is called MyCal.
However, I want to be able to open the frmCalendar from another from, frmDateSelector, and feed the value back to it.
I can accomplish the first step by using the following code on the OnClick event for MyCal in frmCalendar...
Thus if I open frmCalendar from frmDateSelector no calendar value will be fed back to frmAttendance.
So far so good. However, there are 2 possible text boxes on frmDateSelector from which I want to open frmCalendar by double clicking. One is called txtStartDate, the other is called txtEndDate. I want to feed the date value selected on MyCal to be fed back to whichever text box it is from which I open frmCalendar.
Any suggestions as to the best way to accomplish that?
Thanks.
Tom
I have a form, frmAttendance, from which I can call frmCalendar, and feed the Calendar date value selected back to a text box called "txtMeetingDate" on frmAttendance.
The calendar control is called MyCal.
However, I want to be able to open the frmCalendar from another from, frmDateSelector, and feed the value back to it.
I can accomplish the first step by using the following code on the OnClick event for MyCal in frmCalendar...
Code:
If CurrentProject.AllForms("frmAttendance").IsLoaded Then
Forms!frmAttendance!txtMeetingDate = Forms!frmCalendar!MyCal.Value
DoCmd.Close , , acSaveNo
Thus if I open frmCalendar from frmDateSelector no calendar value will be fed back to frmAttendance.
So far so good. However, there are 2 possible text boxes on frmDateSelector from which I want to open frmCalendar by double clicking. One is called txtStartDate, the other is called txtEndDate. I want to feed the date value selected on MyCal to be fed back to whichever text box it is from which I open frmCalendar.
Any suggestions as to the best way to accomplish that?
Thanks.
Tom