G
Guest
I have designed a basic booking database for a hotel with details on
customers and their stay.
I am stuck though at how to work out the guests total cost of their stay.
I need to work this out through the fields of:
price per night of a room (£56.00, £70.00 etc)
length of stay (4,5,6,7 days etc)
Tariff (Two chioces-BBEM adds £8 per night onto the cost, BB does not)
And
Total Cost ((price per night*length of stay)+(tariff*length of stay))
To enable the above formula to work, i need the query to recognise when BBEM
has been typed and maybe use an IF function like in Excel to substitute in
the £8 to enable calculation.
The main point of this question is to know how the query would be disigned
to enable me to work out the total cost.
Any help would be greatly appreciated.
customers and their stay.
I am stuck though at how to work out the guests total cost of their stay.
I need to work this out through the fields of:
price per night of a room (£56.00, £70.00 etc)
length of stay (4,5,6,7 days etc)
Tariff (Two chioces-BBEM adds £8 per night onto the cost, BB does not)
And
Total Cost ((price per night*length of stay)+(tariff*length of stay))
To enable the above formula to work, i need the query to recognise when BBEM
has been typed and maybe use an IF function like in Excel to substitute in
the £8 to enable calculation.
The main point of this question is to know how the query would be disigned
to enable me to work out the total cost.
Any help would be greatly appreciated.