I'm trying to make a simple database in access for work, i'm not brilliant with access, i know enough to make simple tables, forms and macros.
I'm trying to calculate the difference between two dates that i will be entering into two fields on a table.
Its a hire car company i need the difference between the date a car is hired out and the date it comes back in. I then want to multiply that number by the hire rate, say its £55 a day and the car is hired for 10 days.
I then need the result to be displayed in a field, possibly by using a button that says 'Calculate' or 'Hire cost'
eg. 01/04/2009 to 10/04/2009 inclusive multiplied by a hire rate of 55.
I have a table with the cars and thier rates and a table for this calculation (along with some other tables for clients etc.)
Is this possible? maybe using datediff? i've seen a few pages via google that say to use this but i can't work out how to do it. if anyone can help i'd really appreciate it.
thanks
Dan
I'm trying to calculate the difference between two dates that i will be entering into two fields on a table.
Its a hire car company i need the difference between the date a car is hired out and the date it comes back in. I then want to multiply that number by the hire rate, say its £55 a day and the car is hired for 10 days.
I then need the result to be displayed in a field, possibly by using a button that says 'Calculate' or 'Hire cost'
eg. 01/04/2009 to 10/04/2009 inclusive multiplied by a hire rate of 55.
I have a table with the cars and thier rates and a table for this calculation (along with some other tables for clients etc.)
Is this possible? maybe using datediff? i've seen a few pages via google that say to use this but i can't work out how to do it. if anyone can help i'd really appreciate it.
thanks
Dan