Where Did I Go?
11-09-2006, 02:59 PM
Hello all,
I need to design a relatively straightforward database in MS Access.
The idea is around a hotel booking system.
I have 4 tables: - relating to guests, rooms, room numbers and reservations
Anyway, as part of the reservations table I have included two fields, namely checking in date and checking out date. Both are set to short-date format.
This is fine. Now we are also given the amount paid per night (in this example these vary with different reservations as apposed to using some standard price for specific rooms - although these are given :s)
My question is, is there some function within Access to either, from the two dates imputted calculate a number of nights stayed - and then using this value multiply with the rate per night field (set to currency), to give a total cost of stay figure - given as a new field.
At the moment I am typing in the total cost of stay figure manually, but I feel this is not very practical.
Would appreciate any guidance. I have looked through the 'help' facilities within MS Access, but this has proved unsuccessful.
Many Thanks.
I need to design a relatively straightforward database in MS Access.
The idea is around a hotel booking system.
I have 4 tables: - relating to guests, rooms, room numbers and reservations
Anyway, as part of the reservations table I have included two fields, namely checking in date and checking out date. Both are set to short-date format.
This is fine. Now we are also given the amount paid per night (in this example these vary with different reservations as apposed to using some standard price for specific rooms - although these are given :s)
My question is, is there some function within Access to either, from the two dates imputted calculate a number of nights stayed - and then using this value multiply with the rate per night field (set to currency), to give a total cost of stay figure - given as a new field.
At the moment I am typing in the total cost of stay figure manually, but I feel this is not very practical.
Would appreciate any guidance. I have looked through the 'help' facilities within MS Access, but this has proved unsuccessful.
Many Thanks.