Updating a field based on a range of values

jobb

Board Regular
Joined
Apr 24, 2003
Messages
78
can someone please help me do this?

I have 2 fields [TotalVolume] and [ComissionRate] in one table. This field can have any number in it, for example $845,231.

In my other table I have a chart with round numbers in the field [Volume] ($600,000, $650,000, $800,000, $900,000), and their respective basis points (another field [BPs].. (75, 85, 90, 95).

In this example, since $845,231 is between $800,000 and $899,999, I would like to update the [ComissionRate] field for that particular record to 90.

I can do this in Excel using VLOOKUP, but am unable to figure out how to solve this in Access.

Any help?

Thanks
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Not sure, but you may get some joy out of DLOOKUP. I know that it does exact matches (like VLOOKUP(...,...,...,FALSE) but I'm not sure that it does "step" matches like you want.

If not, you may need to use an expression to fix the problem -- but that may hard-wire the step values and rates.
 
Upvote 0

Forum statistics

Threads
1,221,553
Messages
6,160,468
Members
451,649
Latest member
fahad_ibnfurjan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top