A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Calendar Control in a Form



 
 
Thread Tools Display Modes
  #1  
Old September 1st, 2006, 09:37 PM posted to microsoft.public.access.forms
[email protected]
external usenet poster
 
Posts: 35
Default Calendar Control in a Form

I have a headscratcher...
I have used the "how to add a pop up calendar" from MS...and for two of
the calendars it works perfectly.

Then I added a third calendar and it returns the serial date and not
Gregorian...

This is the code that I used to open the calendar and insert that value
into a text box...

Anyone have a clue why this all of a sudden happened?

Private Sub Calendar3_Click()
' Set BackgroundStart to the selected date and hide the calendar.
BackgroundStart.Value = Calendar3.Value
BackgroundStart.SetFocus
Calendar3.Visible = False
End Sub
Private Sub BackgroundStart_MouseDown(Button As Integer, Shift As
Integer, X As Single, Y As Single)
' Show Calendar and set its date.
Calendar3.Visible = True
Calendar3.SetFocus
' Set to today if Background has no value.
Calendar3.Value = IIf(IsNull(BackgroundStart), Date,
BackgroundStart.Value)

End Sub



Thanks!!!


Hans

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:04 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.