I have a form with, among others, controls for RoomNo., CheckInDate and
CheckOutDate. I would like to check whether the RoomNo selected is occupied
for the period as stated in CheckInDate and CheckOutDate.
I have used the OpenRecordSet method for the AfterUpdate event in the form,
as follows:
Set rs = db.OpenRecordSe t ("qryRoomsAvail able",dbOpenDyn aSet)
However, this does not work. When I change "qryRoomsAvaila ble" to "tblRooms"
the codes seem to run alright.
Can anyone help me? TQ.
CheckOutDate. I would like to check whether the RoomNo selected is occupied
for the period as stated in CheckInDate and CheckOutDate.
I have used the OpenRecordSet method for the AfterUpdate event in the form,
as follows:
Set rs = db.OpenRecordSe t ("qryRoomsAvail able",dbOpenDyn aSet)
However, this does not work. When I change "qryRoomsAvaila ble" to "tblRooms"
the codes seem to run alright.
Can anyone help me? TQ.
Comment