Hi everyone,
I have two tables, one with parts, the other with premium. Some parts don't have premiums. I need to build a query that allows me to add the premiums on to the parts if there is one, but as mentioned before, some of the parts dont have premiums.
I get an error whenever I call the summary table for the parts that do not have a link to the premium table. *I have selected the list all records that exist in the Parts table and list those which are equal in premium table*
For instance if my records were:
PARTS TABLE
exhaust 50.00
hood 250.00
Dash Board 60.00
PREMIUM TABLE
exhaust 5.00
Dash Board 2.50
so when I pull my query up to see the final price of the parts I get something like this
NAME PRICE PREMIUM TOTAL
Exhaust 50.00 5.00 55.00
Hood 250.00 #error #error
Dash Board 60.00 2.50 62.50
What kind of code do I have to write in the query section in order to change this #error into a 0?
Thanks!
I have already tried the...
IIF(isnumeric([premium])=TRUE,[Premium], 0)
but it still gives me an error. Any help would be great!
thanks again!
I have two tables, one with parts, the other with premium. Some parts don't have premiums. I need to build a query that allows me to add the premiums on to the parts if there is one, but as mentioned before, some of the parts dont have premiums.
I get an error whenever I call the summary table for the parts that do not have a link to the premium table. *I have selected the list all records that exist in the Parts table and list those which are equal in premium table*
For instance if my records were:
PARTS TABLE
exhaust 50.00
hood 250.00
Dash Board 60.00
PREMIUM TABLE
exhaust 5.00
Dash Board 2.50
so when I pull my query up to see the final price of the parts I get something like this
NAME PRICE PREMIUM TOTAL
Exhaust 50.00 5.00 55.00
Hood 250.00 #error #error
Dash Board 60.00 2.50 62.50
What kind of code do I have to write in the query section in order to change this #error into a 0?
Thanks!
I have already tried the...
IIF(isnumeric([premium])=TRUE,[Premium], 0)
but it still gives me an error. Any help would be great!
thanks again!