BradCollins
Technical User
Some time ago with the help of people here I manage to create a booking system for my work to be able to book rooms. This has been in use very successfully for over a year now and everyone is happy.
Now however they want to be able to book the rooms in smaller time amounts.
Currently things are booked by the day, now they want to be able to book them by the half hour, my question is how do I now show this graphically on the booking calendar I created.
I have added fields to record a start time and and end time, but of course the calendar works on the entire day.
The calendar is currently laid out with the rooms listed down the side (Y axis) and the days across the top (X axis) this is populated from a query
Now I want the same format, but have the time periods (30 minutes) across the top instead of the days.
The query that fills the boxes for each room at the moment is
this is backed by a module
any hints would be most appreciated as I have spent over a week trying to figure this one out. Thanks
Now however they want to be able to book the rooms in smaller time amounts.
Currently things are booked by the day, now they want to be able to book them by the half hour, my question is how do I now show this graphically on the booking calendar I created.
I have added fields to record a start time and and end time, but of course the calendar works on the entire day.
The calendar is currently laid out with the rooms listed down the side (Y axis) and the days across the top (X axis) this is populated from a query
Now I want the same format, but have the time periods (30 minutes) across the top instead of the days.
The query that fills the boxes for each room at the moment is
Code:
day1Booking: isBooked([VenueID],forms!frmBookingsCalendar!txtDate1)
this is backed by a module
Code:
Public Function isBooked(intRoomID As Integer, dtmDay As Date) As String
On Error GoTo errLbl
Dim strWhere As String
strWhere = " fldBookAccom = " & intRoomID & " AND fldBookIn<=" & sqlDate(dtmDay) & " AND ([fldBookOut]-1)>=" & sqlDate(dtmDay)
Debug.Print strWhere
If Not IsNull(DLookup("fldBookAccom", "tblBookings", strWhere)) Then
'isBooked = "Booked"
Else
isBooked = "-"
End If
Exit Function
errLbl:
MsgBox Err.Number & Err.Description
End Function
any hints would be most appreciated as I have spent over a week trying to figure this one out. Thanks