B
Brian C
have an Availability table that look like this:
Booking Date
Period
Room
Booking Id
I have a form to query availability and I can run the
following SQL to get multiple records:
SELECT AVAILABILITY.BookingDate, AVAILABILITY.Period,
AVAILABILITY.Room, AVAILABILITY.[Booking ID]
FROM AVAILABILITY
WHERE (((AVAILABILITY.BookingDate)=forms![SINGLE BOOKING
AVAILABILITY]![BookingDate]) AND ((AVAILABILITY.Period)
=forms![SINGLE BOOKING AVAILABILITY]![Combo8]));
How do I then process each record in turn to check the
Booking ID field?
I want to check it for value 1 and if any record returned
contains 1 put a message on my form to say select another
room. If none contains 1 then I want to put a message on
my form to say select another date or period.
Booking Date
Period
Room
Booking Id
I have a form to query availability and I can run the
following SQL to get multiple records:
SELECT AVAILABILITY.BookingDate, AVAILABILITY.Period,
AVAILABILITY.Room, AVAILABILITY.[Booking ID]
FROM AVAILABILITY
WHERE (((AVAILABILITY.BookingDate)=forms![SINGLE BOOKING
AVAILABILITY]![BookingDate]) AND ((AVAILABILITY.Period)
=forms![SINGLE BOOKING AVAILABILITY]![Combo8]));
How do I then process each record in turn to check the
Booking ID field?
I want to check it for value 1 and if any record returned
contains 1 put a message on my form to say select another
room. If none contains 1 then I want to put a message on
my form to say select another date or period.