Help!
We can assign resource descriptions to both generic customer numbers (customer number zero) or a specific customer number (customer number 12345) which reside in a table.
For example, resource "ABC" might be described as "paint" for a generic customer (customer zero). But maybe customer number 12345 might want to call resource "ABC" "flat paint".
I have 2 tables, A and B. Table A contains Customer number (which is never zero) and resource number. Table B contain Customer number (which can be zero for a generic customer), resource number, and resource description.
What I would like to do is look up the customer number from table A in table B. If it exists, give me the resource description from table B for that customer and resource number. If the customer number doesn't exist in table B (Is null), give me customer zero's resource description and resource number.
Can this be done in a query???
Right now I prompt for the customer number in the query to get the description by checking table B to see if the customer number exists in the table, and if it does, enter the customer number, if not, I enter "0".
Any help/suggestions/directions would be greatly appreciated!
Bob
We can assign resource descriptions to both generic customer numbers (customer number zero) or a specific customer number (customer number 12345) which reside in a table.
For example, resource "ABC" might be described as "paint" for a generic customer (customer zero). But maybe customer number 12345 might want to call resource "ABC" "flat paint".
I have 2 tables, A and B. Table A contains Customer number (which is never zero) and resource number. Table B contain Customer number (which can be zero for a generic customer), resource number, and resource description.
What I would like to do is look up the customer number from table A in table B. If it exists, give me the resource description from table B for that customer and resource number. If the customer number doesn't exist in table B (Is null), give me customer zero's resource description and resource number.
Can this be done in a query???
Right now I prompt for the customer number in the query to get the description by checking table B to see if the customer number exists in the table, and if it does, enter the customer number, if not, I enter "0".
Any help/suggestions/directions would be greatly appreciated!
Bob