I am having some problems with my query, any help will be most appreciated.
Problem: I have created a query from two joined tables example: Table A and Table B. Table A tend to have a field which when divided by Table B should create a new field with the result of the division.
Example Table A: has fields Name,Address,Amount earned.
Table B: has fields Order made, order date, Amount spent.
Query combines both tables using a relationship where in the query Amount earned/Amount spent (new field). This works fine when there are figures in the fields, but when Amount earned is blank and Amount spent is blank, i keep getting an error message on that new field (#Error).
Is there anyway of defaulting this to show zero when both fields have zero in them. Hence the formula will read 0/0 , New field = 0 and not (#Error).
Thanks for your help in advance.
Problem: I have created a query from two joined tables example: Table A and Table B. Table A tend to have a field which when divided by Table B should create a new field with the result of the division.
Example Table A: has fields Name,Address,Amount earned.
Table B: has fields Order made, order date, Amount spent.
Query combines both tables using a relationship where in the query Amount earned/Amount spent (new field). This works fine when there are figures in the fields, but when Amount earned is blank and Amount spent is blank, i keep getting an error message on that new field (#Error).
Is there anyway of defaulting this to show zero when both fields have zero in them. Hence the formula will read 0/0 , New field = 0 and not (#Error).
Thanks for your help in advance.
Last edited: