First, I want to say I have used this board to resolve many issues that I have had with access and I thank everyone who contributes. I have attempted to resolve my issue myself, but I am stumped and would appreciate any help you can give.
This is a database to make reservations
I am trying to run a query against two tables. The first table (families) has the following fields
Family
Neighborhood
Street
nmbsnglebedsava il
Nmbrdoulbedsava il
nmbrtriplebedsa vail
The second table, reservations has
Family
Traveler
Arrivaldate
Departuredate
Type (what kind of room)
I set up the form fine, so when I make a reservation and choose a Single Bed, the number is subtracted from the nmbrsnglebedsav ail and it gives me the number of available remaining.
My problem is with the query. How can I query on the remaining beds available? When I use the same formula that I used in the form on the query, the beds remaining is static from one record to the next and doesnt subtract the total beds used according to each family. If i have two travelers (two separate records) visiting "family smith" the query subtracts a "single bed" from the Total Avail but does not carry the subtotal to the next record. So I get the same amount of remaining beds on each record, where in fact, it should total all the "singles" from the reservation table and subtract that from the Family table.
I hope I made sense..and again ..thanks for everyone's help!
This is a database to make reservations
I am trying to run a query against two tables. The first table (families) has the following fields
Family
Neighborhood
Street
nmbsnglebedsava il
Nmbrdoulbedsava il
nmbrtriplebedsa vail
The second table, reservations has
Family
Traveler
Arrivaldate
Departuredate
Type (what kind of room)
I set up the form fine, so when I make a reservation and choose a Single Bed, the number is subtracted from the nmbrsnglebedsav ail and it gives me the number of available remaining.
My problem is with the query. How can I query on the remaining beds available? When I use the same formula that I used in the form on the query, the beds remaining is static from one record to the next and doesnt subtract the total beds used according to each family. If i have two travelers (two separate records) visiting "family smith" the query subtracts a "single bed" from the Total Avail but does not carry the subtotal to the next record. So I get the same amount of remaining beds on each record, where in fact, it should total all the "singles" from the reservation table and subtract that from the Family table.
I hope I made sense..and again ..thanks for everyone's help!
Comment