Frothingslosh
Premier Pale Stale Ale
- Local time
- Today, 18:20
- Joined
- Oct 17, 2012
- Messages
- 3,276
Okay, I'm trying to use the calendar sub form I found HERE http://www.access-programmers.co.uk/forums/showthread.php?t=218962 in post #4.
My problem is that I've not worked with custom events before, and can't figure out how to catch when DateChanged triggers, and how to access the new date it generates.
I've placed the calendar form into a main form as a subform, included the suggested code (and used the indicated textbox name to make sure everything worked), but I can't find any indication that the event actually fires. The event handler listed in the post (
) never actually triggers (I checked using a breakpoint). I know the calendar form itself is working properly, and it even has a Value property from which I can pull the selected date as long as the system is aware that a date has been selected. (I've tested via a command button that pulls the updated value manually.) It's determining when that happens that's stumping me, and any help would be much appreciated.
And the built-in date picker really isn't an option - as far as I'm aware, it only becomes available when a textbox is bound to a date field, and this is for a form for the user to select an end date for a 7-day report, meaning no bound field to work with.
My problem is that I've not worked with custom events before, and can't figure out how to catch when DateChanged triggers, and how to access the new date it generates.
I've placed the calendar form into a main form as a subform, included the suggested code (and used the indicated textbox name to make sure everything worked), but I can't find any indication that the event actually fires. The event handler listed in the post (
Code:
Private Sub Form_Load()
Set calendarForm = Me.frmCalendar.Form
End Sub
and
Private Sub calendarForm_DateChanged(newDate As Date)
txtApptmntDate = newDate
End Sub
And the built-in date picker really isn't an option - as far as I'm aware, it only becomes available when a textbox is bound to a date field, and this is for a form for the user to select an end date for a 7-day report, meaning no bound field to work with.