Update Query Not Working

M

michael shearer

Hi,

I have an update query that is supposed to update from a blank cell to
a number with five decimal places.

For some reason, when I run it or view the datasheet, the values do
not display. When I run a select query to view the data that is
supposed to update, I can see it.

There are additional fields in the update query that are all
calculations based on the value that displays as blank. Here is the
SQL for it:

UPDATE CurrencyConversion, RoyaltyReport SET RoyaltyReport.[Currency
Conversion] = CurrencyConversion.[Currency Rate], RoyaltyReport.[USD
Gross Total] = RoyaltyReport.[USD Gross Total]*CurrencyConversion.
[Currency Rate], RoyaltyReport.[Total Sale] = RoyaltyReport.[Total
Sale]*CurrencyConversion.[Currency Rate], RoyaltyReport.USD =
RoyaltyReport.USD*CurrencyConversion.[Currency Rate],
RoyaltyReport.ROYALTY = RoyaltyReport.Royalty*CurrencyConversion.
[Currency Rate], RoyaltyReport.unitprice =
RoyaltyReport.unitprice*CurrencyConversion.[Currency Rate]
WHERE (((RoyaltyReport.SOURCE)=[CurrencyConversion].[Month Paid]));

Any thoughts on this? Thanks for your time.

Kindly,

Michael
 
B

Biz Enhancer

Hi Michael,

It sounds like all the first thing you need to check is the datatype for
the table field . If it is set as an integer is will round the numbers.
However, if you set it a a Decimal in the feildsize then you can set the
precision and scale values. The precision being the total number of
digits that can be stored, the scale being the number of digits to be
stored to the right of the decimal point.

HTH,
Regards,
Nick.
 

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

Top