Hi Guys,
I’m making a database which is used to hire cars to customers.
What I’m having problems is that I want the user on the application to have a list of all the cars free for a certain date.
I know that if I do in a query I can get the result of free cars. But the problem is can I pass the parameters back into the form for the user to see?
Also, will the query now stop the user from renting a car that is out to another customer? – like a message box will appear saying ‘this car is on loan’
For example Customer 1 has hired car number 1 for the 1/1/08 and will return it on the 2/01/08
Customer 2 wants car 1 for the 1/1/08 and will return on the 2/01/08.
Also, can queries work out calculation in dates? So that it can work out the car is being used for 2 days and will be in the format of 2/01/08?
Cheers for any help.
I’m making a database which is used to hire cars to customers.
What I’m having problems is that I want the user on the application to have a list of all the cars free for a certain date.
I know that if I do in a query I can get the result of free cars. But the problem is can I pass the parameters back into the form for the user to see?
Also, will the query now stop the user from renting a car that is out to another customer? – like a message box will appear saying ‘this car is on loan’
For example Customer 1 has hired car number 1 for the 1/1/08 and will return it on the 2/01/08
Customer 2 wants car 1 for the 1/1/08 and will return on the 2/01/08.
Also, can queries work out calculation in dates? So that it can work out the car is being used for 2 days and will be in the format of 2/01/08?
Cheers for any help.