I am a very new user of Access 2000 so please bear with me. I am a financial planner and am trying to create a database that will handle invoicing our clients quarterly. We charge a percentage rate based on total assets at the end of each quarter. Unfortunately not all clients are billed according to the same rate schedule. There are two rate schedules "old" and "new". I have created a table that displays which rate schedule the client falls under ("old" or "new" in field). I also have created two separate tables - for example, one titled old and it looks like this:
Table RangeLow RangeHigh QuarterlyRate
Old $5,000,000 $15,000,000 0.1250%
Old $3,100,000 $4,999,999 0.2500%
Old $2,100,000 $3,099,999 0.2750%
Old $1,600,000 $2,099,999 0.2875%
Old $1,300,000 $1,599,999 0.3000%
Old $300,000 $1,299,999 0.3125%
Old $200,000 $299,999 0.3750%
Old $0 $199,999 0.5000%
I need a query that will lookup the correct rate schedule depending on the client and then identify which range the total assets fall under, and then have the quarterly rate be entered into a field. In other words if the Smith's have $1,000,000 in assets and fall under the "old" fee schedule I need the query to spit out the quarterly rate as 0.3000%. Obviously the asset values vary each quarter and this query would need to be run to generate an invoice.
I have read through several tutorials on SQL and I just can't figure out where to even start. I am able to do the job using Excel's VLOOKUP function - but I am not finding the same function in Access. Any help is greatly appreciated. I am simply going around and around in circles at this point.
Table RangeLow RangeHigh QuarterlyRate
Old $5,000,000 $15,000,000 0.1250%
Old $3,100,000 $4,999,999 0.2500%
Old $2,100,000 $3,099,999 0.2750%
Old $1,600,000 $2,099,999 0.2875%
Old $1,300,000 $1,599,999 0.3000%
Old $300,000 $1,299,999 0.3125%
Old $200,000 $299,999 0.3750%
Old $0 $199,999 0.5000%
I need a query that will lookup the correct rate schedule depending on the client and then identify which range the total assets fall under, and then have the quarterly rate be entered into a field. In other words if the Smith's have $1,000,000 in assets and fall under the "old" fee schedule I need the query to spit out the quarterly rate as 0.3000%. Obviously the asset values vary each quarter and this query would need to be run to generate an invoice.
I have read through several tutorials on SQL and I just can't figure out where to even start. I am able to do the job using Excel's VLOOKUP function - but I am not finding the same function in Access. Any help is greatly appreciated. I am simply going around and around in circles at this point.