division by zero. whats happening?

G

Guest

I have a summary query based on a detailed query and I want to do the above.
I have a column for calculating the total amount charged for overtime and
the overall total (contracted hours plus overtime).

I want to calculate the percentage spent on overtime charges of the overall
total.

when I put this into the query

overtpct: ([overtime]*100)

it works fine but when I try to divide this by the overall total it says
"division by zero" when it clearly isn't!!!

So whats happening.

cheers
 
I

Immanuel Sibero

Scubadiver,

It's hard to see what's happening without the query SQL text. Did you
confirm the overall total is not zero by including it in the query?
Please post the SQL.

Immanuel Sibero
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Division by Zero Error 1
Negative Numbers 2
Query to divide. 4
Division By Zero error 2
"Division by zero", but... 2
Win/Loss Statistics 2
"Division by Zero" Question 2
Division by zero error 16

Top