G
Guest
Hi!
I am in the middle of creating a form for a database that acts as an order
processing system for a boat company (part of a uni assignment). i'm using
access 2k3 btw. so far, i have the following on my form:
Booking ID (Autonumber)
Customer ID(Autonumber)
Booking Taken By (Staff enter ID)
Boat id (Staff selects boat for hire from lookup)
Hire Start Date (staff enters date)
Hire End Date (staff enters date)
Number of Days (Datediff function)
Now the problem is that the company applies a discount if certain criteria
are met. for example if a boat is hired for more than 7 days, they get a 10%
discount. the data for discount rates is in a table called "Hire Discount",
which look like this:
From (Day) To (Day) Discount (%)
0 6 0
7 10 10 etc
Question: How do i get the form to lookup the number of days in the table
and work out the appropriate discount value?
Thanks
Shaheed
I am in the middle of creating a form for a database that acts as an order
processing system for a boat company (part of a uni assignment). i'm using
access 2k3 btw. so far, i have the following on my form:
Booking ID (Autonumber)
Customer ID(Autonumber)
Booking Taken By (Staff enter ID)
Boat id (Staff selects boat for hire from lookup)
Hire Start Date (staff enters date)
Hire End Date (staff enters date)
Number of Days (Datediff function)
Now the problem is that the company applies a discount if certain criteria
are met. for example if a boat is hired for more than 7 days, they get a 10%
discount. the data for discount rates is in a table called "Hire Discount",
which look like this:
From (Day) To (Day) Discount (%)
0 6 0
7 10 10 etc
Question: How do i get the form to lookup the number of days in the table
and work out the appropriate discount value?
Thanks
Shaheed