L
lynn atkinson
I have a form (bookingsfrm)which displays details of an
event. It contains a sub form (bookingqryfrm) which
details all the persons booked for that event. I want to
count how many people have booked or provisionally booked
for that event (ie on the subform
status= 'booked'or 'provisional')and display this total so
I can use it to calculate how many places are still
available.
So far, with the help I have had on this newsgroup, I have
managed to get the calcualtion to count the total no on
the subform filling the criteria, but cannot get it to
display per event on the bookingsfrm. ie event no 3 has 2
places booked and one provisional - should display "3" (it
is displaying the total for all events ie "7".)
the statement I am using is
=DCount("[status]","bookings",[event ID] & Forms!
bookingSfrm![event ID] & "AND [status] IN
('booked','provisional')")
Where am I going wrong? (the eventID appears on both the
master and the subform)
event. It contains a sub form (bookingqryfrm) which
details all the persons booked for that event. I want to
count how many people have booked or provisionally booked
for that event (ie on the subform
status= 'booked'or 'provisional')and display this total so
I can use it to calculate how many places are still
available.
So far, with the help I have had on this newsgroup, I have
managed to get the calcualtion to count the total no on
the subform filling the criteria, but cannot get it to
display per event on the bookingsfrm. ie event no 3 has 2
places booked and one provisional - should display "3" (it
is displaying the total for all events ie "7".)
the statement I am using is
=DCount("[status]","bookings",[event ID] & Forms!
bookingSfrm![event ID] & "AND [status] IN
('booked','provisional')")
Where am I going wrong? (the eventID appears on both the
master and the subform)