hi im a novice access user and have built a basic hotel database the problem i have is i have a form called
searchCustomersForm which has a field called CustomerRef
CustomerRef is from a table called customerTable
customerTable is linked to bookingTable
bookingTable is linked to roomNo
and i have built a query
SELECT bookingTable.ArrivalDate, roomNo.Rooms
FROM bookingTable, roomNo
WHERE (((customerTable.CustomerRef)= bookingTable.CustomerRef) And ((bookingTable.RoomRef)=roomNo.RoomRef));
when i enter a number in bookingTable.CustomerRef the query runs effectively when i test it
what i require is to somehow get the data from the CustomerRef field of the searchCustomersForm form into the query where bookingTable.CustomerRef is, is this possible and if it is how do i do it.
thank you for any help that you can give me.
searchCustomersForm which has a field called CustomerRef
CustomerRef is from a table called customerTable
customerTable is linked to bookingTable
bookingTable is linked to roomNo
and i have built a query
SELECT bookingTable.ArrivalDate, roomNo.Rooms
FROM bookingTable, roomNo
WHERE (((customerTable.CustomerRef)= bookingTable.CustomerRef) And ((bookingTable.RoomRef)=roomNo.RoomRef));
when i enter a number in bookingTable.CustomerRef the query runs effectively when i test it
what i require is to somehow get the data from the CustomerRef field of the searchCustomersForm form into the query where bookingTable.CustomerRef is, is this possible and if it is how do i do it.
thank you for any help that you can give me.