Italiafirenze
New member
- Local time
- Today, 17:56
- Joined
- Mar 30, 2008
- Messages
- 2
Hi,
I have a database which I use to run a Car Sales business.
We use a sales form which enters all the relevant invoice information about the deal as it is done. You put in the relevant information e.g. Sale Price, Extras, Warranty Price, Deposit, Part-Exchange, Road Tax Price and then it calculates the total amount owing accordingly. All info about the car is already entered when the car is added to stock.
What I am looking for is instead of having to type in the relevant Road Tax Price in the field "RoadTaxPrice" a Combo box which will give a choice between 6 or 12 months tax and lookup the correct price in a table and when selected enter it into the field. The tax bracket that a car falls into varies depending on three factors, Date of Registration, Engine Capacity and CO2 emissions.
For non-uk members; If a car is registered before 01/03/2001 the road tax is based on engine capacity. If a car is registered after 01/03/2001 the road tax is based on CO2 emissions.
If the tax is based on emissions there are brackets A,B,C,D,E and F. If the car was registered after 23/03/2006 a band G also applies.
In most cases the price for 6 months is half of 12 months plus a 10% surcharge. Except for bands A and B. Band A is Free and Band B is £35 for 12 months and cannot be taxed for 6 months.
I have created a table to store the different pricing bands with the following fields:
ID, Name, CO2 Minimum value, EngineCC Minimum value, Date of Reg, Rate 6 months, Rate 12 months.
(These aren't field names just descriptions of what they contain)
If anyone can point me towards an obvious principle that would work for this that's great.
I searched for ages for a solution to looking up make and model until I found that what I wanted was called "Cascading Combo Boxes".
Any help appreciated. Many Thanks.
I have a database which I use to run a Car Sales business.
We use a sales form which enters all the relevant invoice information about the deal as it is done. You put in the relevant information e.g. Sale Price, Extras, Warranty Price, Deposit, Part-Exchange, Road Tax Price and then it calculates the total amount owing accordingly. All info about the car is already entered when the car is added to stock.
What I am looking for is instead of having to type in the relevant Road Tax Price in the field "RoadTaxPrice" a Combo box which will give a choice between 6 or 12 months tax and lookup the correct price in a table and when selected enter it into the field. The tax bracket that a car falls into varies depending on three factors, Date of Registration, Engine Capacity and CO2 emissions.
For non-uk members; If a car is registered before 01/03/2001 the road tax is based on engine capacity. If a car is registered after 01/03/2001 the road tax is based on CO2 emissions.
If the tax is based on emissions there are brackets A,B,C,D,E and F. If the car was registered after 23/03/2006 a band G also applies.
In most cases the price for 6 months is half of 12 months plus a 10% surcharge. Except for bands A and B. Band A is Free and Band B is £35 for 12 months and cannot be taxed for 6 months.
I have created a table to store the different pricing bands with the following fields:
ID, Name, CO2 Minimum value, EngineCC Minimum value, Date of Reg, Rate 6 months, Rate 12 months.
(These aren't field names just descriptions of what they contain)
If anyone can point me towards an obvious principle that would work for this that's great.
I searched for ages for a solution to looking up make and model until I found that what I wanted was called "Cascading Combo Boxes".
Any help appreciated. Many Thanks.