What exactly do you want to do with the calender control?
What database will you be using?
What kind of reservations?
What code do you have so far?
AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
Firstly, change the following -
Dim holdSelectedDate As String
holdSelectedDate = Me.Calendar1.Month & "/" & Me.Calendar1.Day & "/" & Me.Calendar1.Year
to
Dim holdSelectedDate As Date 'date
holdSelectedDate = Calender1.Value 'Add this AFTER the user clicked "selected" a date from calender1.
Text1.Text = Format(holdSelectedDate, "yy/mm/dd")
To ensure that Calender1 (presuming you are using monthview as a control) shows the current date, set its ShowToday property to True.
AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
You also might want to change your select statement to the following -
cn.Open ("SELECT * FROM tblReservations WHERE date = DateValue(" & "'" & holdSelectedDate & "'")
AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
Has this solve your problem? If so, please mark as solved, thanks.:)
AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
No problem. Let us know how it went.:)
AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350