Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update Event not working on Calendar Object

Status
Not open for further replies.

bjdobs

Programmer
Mar 11, 2002
261
CA
I'm working on a schedule screen and thought I could use the office calendar object however the update event does not occur when a new date is selected??? Am I doing something wrong? This object is unbound not a tab stop, Enabled and not locked ... what I want to do is on update a screen textbox be updated automaticlly with the new date and then focus be passed back to the current object (either the default button or the object last in focus prior to clicking on the Calendar.

In Borland's Owl (C++) there was a way to encapsulate objects and preparse windows messages like keyup, down mouse click etc ... this is an extreme but does anyone have a simpler way to get this object to work properly?
 
I use:

Private Sub EventDateCalendar_Click()
Forms!Orders![ShipDate] = Me![EventDateCalendar].value
End Sub

The Calendar control does not show the onclick event in it's properties but you can right click it and build event.
 
Thank-you very much ... I tried just substituting the keyword update with click and it did not work because of the internal paramater (code integer) once I removed the parameter it works fine :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top