G
Guest
I am trying to have a text box called
NumberOfRemainingPlaces, which is an unbound control, do
the
following calculation:
Return the total number of bookings from
tblbookings.numberOfPeople where the holiday number = the
holiday number from frmBookings.HolidayRef
tblbookings.numberofpersons is a long int.
From a note I have already posted I have got this far:
=DSum("[NumberOfPeople"]","tblBookings","[HolidayNumber]
= " &
Me![HolidayRef])
however this is giving me a #Name error.
Here is the dsum with the proper names:
=DSum("[NumberOfpersons"]","tblBookings","[HolidayRef]
= " & Me![HolidayRef])
I have also tried:
=DSum("[NumberOfPeople]","tblBookings","[HolidayNumber]
= " & Me![HolidayRef])
As this would seem to be correct with no joy. I also
dont understand why some text box names have brackets and
quotes and some dont.
Thanks for any help given.
NumberOfRemainingPlaces, which is an unbound control, do
the
following calculation:
Return the total number of bookings from
tblbookings.numberOfPeople where the holiday number = the
holiday number from frmBookings.HolidayRef
tblbookings.numberofpersons is a long int.
From a note I have already posted I have got this far:
=DSum("[NumberOfPeople"]","tblBookings","[HolidayNumber]
= " &
Me![HolidayRef])
however this is giving me a #Name error.
Here is the dsum with the proper names:
=DSum("[NumberOfpersons"]","tblBookings","[HolidayRef]
= " & Me![HolidayRef])
I have also tried:
=DSum("[NumberOfPeople]","tblBookings","[HolidayNumber]
= " & Me![HolidayRef])
As this would seem to be correct with no joy. I also
dont understand why some text box names have brackets and
quotes and some dont.
Thanks for any help given.