Divison with an update query

punter

Registered User.
Local time
Today, 15:27
Joined
Nov 24, 2006
Messages
108
Hi,


The attached database has a query named qryInsuranceReport. I'm trying to update the column in that query named Broker Charge PCT. I'm using the update query named qryUpdateBrokerChargePCT to do this but it isn't working. The formula is
PHP:
qryInsuranceReport![Broker Charge]/qryInsuranceReport![Broker Total Invoice Amt]
. It looks like it should be working but all I'm getting is either 100% or 0% so something is wrong. I have been able to use this to perform subtraction functions but I guess I'm doing something wrong with the divison part.

Any thoughts are most welcome.

Thank you

Eddie.
 

Attachments

Your field you are trying to store into is Long Integer which means that it will be 1 or 0 when a percentage is calculated (a percentage is a fraction of 1). Change it to something like Double.
 
Thanks so much for the quick reply Bob. I'm looking around in the query where the field is. Where would I switch from Long Interger? I don't see that option.

Thanks

Eddie.
 
Outstanding. That works. Thank you very much Bob.
 

Users who are viewing this thread

Back
Top Bottom