mattolson01
Technical User
I'm sorry if this is answered elsewhere, I promise I looked! Maybe I don't know the right terminology to find it.
--
I have a situation where someone regularly puts two-dimensional lookup tables into Access. If the table in Excel looks like this:
She creates (by hand) a table that looks like this:
Then appends the new table into an Access table with customers "dave", "mary" and so forth. Essentially every cell in the lookup table has its own row in Access, and she runs queries to pick the appropriate value of "1.50" when "bob, $475, 35lbs." shows up in her source data.
Every customer has their own grid, per contract, which can be much larger than this. Any similarities in price or ranges would be a matter of coincidence.
I can't believe there's not a better way to do this...
the questions are:
* Does this thing in Access have a name so I can look for help next time?
* Can this process be automated at all?
Thanks, Matt
--
I have a situation where someone regularly puts two-dimensional lookup tables into Access. If the table in Excel looks like this:
Code:
"Customer 'bob' Insurance Table"
20lb. 50lb.
$400 1.50 2.50
$500 3.50 4.50
She creates (by hand) a table that looks like this:
Code:
cust |minVal |maxVal |minWgt |maxWgt |cost
---------------------------------------------
bob 0.00 399.99 0.00 19.99 0.00
bob 0.00 399.99 20.00 49.99 0.00
bob 0.00 399.99 50.00 99999.99 0.00
bob 400.00 499.99 0.00 19.99 0.00
bob 400.00 499.99 20.00 49.99 1.50
bob 400.00 499.99 50.00 99999.99 2.50
---PLUS 3 MORE ROWS----
Then appends the new table into an Access table with customers "dave", "mary" and so forth. Essentially every cell in the lookup table has its own row in Access, and she runs queries to pick the appropriate value of "1.50" when "bob, $475, 35lbs." shows up in her source data.
Every customer has their own grid, per contract, which can be much larger than this. Any similarities in price or ranges would be a matter of coincidence.
I can't believe there's not a better way to do this...
the questions are:
* Does this thing in Access have a name so I can look for help next time?
* Can this process be automated at all?
Thanks, Matt