Calender forms and modules

paulevans

Registered User.
Local time
Today, 14:47
Joined
Mar 7, 2006
Messages
79
Hi

I have a form pop up calendar that returns the date in a date field on a form. This was a free popup and is activated by a double click which issues the command popupcalendar(screen.ActiveControl). I select the date from the calendar form and this date does update the correct filed with the date value I selected. What I have been trying to do is also display the day of the week which I can get using the vb weekday function. This all works well if I put the code in the on exit event of my date field and then use tab or any other way to exit the field. However I would like to be able to automate the process so that when I returne from the popup calendar the day field is updated at the same time. I have tried all the event options of my date field but do not get any changes to my day field. If a field is updated using VB does this disabe these events. Any help wpould be great.
 
in the double click event (on the properties) enter even procedure. build the event in VBE.

call popupcalendar(screen.ActiveControl)

and then do continue to write here the weekday function.
...
end sub

good luck,

sam
 
HI SamDeman

Thanks a million that was just what I wanted.

Paul
 

Users who are viewing this thread

Back
Top Bottom