Number Format Changing in Query

NSAMSA

Registered User.
Local time
Today, 05:36
Joined
Mar 23, 2014
Messages
66
Hi all:

I have a calculated field in one of my tables that I am using in a query. For some reason, while the number has decimal places in the table, it is rounded in the query. I cannot figure out why this is occurring. Has anyone else experienced this, and how did you fix it?

Thank you
 
Apply the CDbl function to the problem field in the query:

Code:
fieldname1: CDbl(fieldname)
 
Call up the query in design view. Bring up the "properties" list. Select the column and see if there is a format or a number of decimal places. If the decimal places property for that field is blank, make it some number that you might wish it to be.
 
For some reason, when I rounded to 3 decimal places in the original table, it brought back the decimals in the query. I can't say why this happened, but the query is somehow fixed. Hopefully I develop a better understanding.

Thank you for your suggestions.
 

Users who are viewing this thread

Back
Top Bottom