MS Access export to text file decimal round off problem


    Sponsored Links


  • 1. Sum(IIF(<expr.)) Problem in ADP Report Control
    I am currently in the process of converting an MDB to ADP linked to a SQL Server back end. In the MDB I have expressions in both queries and report controls that are essentially: Sum(IIF(<expr>,1,0)) These give me counts for certain parameters. In the queries I was able to create views were I replaced these with CASE ... WHEN statements with a sum in the Group By clause. However I can not find a way to replicate this functionality in a report control, the Control Source will not even accept a CASE ...WHEN statement and with IIF I receive the following error: The expression 'Sum(IIf(<expr>,1,0)) is invalid Any help you can offer would be greatly appreciated.
  • 2. NULLS Affecting Embedded Query Calculations
    I'm sure this has something to do with NULLS, but I just can't get my head around this behaviour. More importantly, I can't SOLVE this behaviour, and until I do I can't have any confidence in my data! - Specs: Access 2007, Windows XP, data in linked (mySQL) table. - I have a text (varchar) field called [HighestEducation] that contains NULL values. - I have a calculated field [HighestEducation_Valid] to check the quality of the contents of the text field. The formula is: IIf(IsNull([HighestEducation]),"No Response",IIf([HighestEducation]="","Invalid/Incomplete","Complete")) In my query results (datasheet), the contents of [HighestEducation_Valid] are: --- 287 COMPLETE --- 1 INVALID/INCOMPLETE --- 301 NO RESPONSE. My problem is that when I use this query in a *subsequent* query (e.g. SELECT [HighestEducation_Valid], COUNT(myID) FROM myQuery GROUP BY [HighestEducation_Valid];), I get: --- 287 COMPLETE --- 302 INVALID/INCOMPLETE. (Other notes: - I've also tried IIf([HighestEducation] Is Null... but the behaviour was unchanged. - This is all happening in vanilla queries, no VBA involved at all.) Any ideas? Many thanks, - Linda Patterson - Dunedin, New Zealand
  • 3. Setting criteria to Access Checkbox
    I hope someone could help me with this. I am trying to setup a criteria to decide when to allow/not allow user to click on the check box. logically it looks simple but I am not able to incorporate in my data access page. I have a numerical field called tier status and right next to it I have a checkbox. I would like to allow user to check and uncheck the checkbox as long as the tier status field is less than 3 and I was hoping that checkbox would be disabled as as as the tier status is 3 or higher. I am really not sure how to work that on access. I was hoping if someone could help me with that. Thanks, Sid

MS Access export to text file decimal round off problem

Postby brotherhou » Sun, 26 Oct 2003 07:13:54 GMT

It's found that when exporting a table/query to a text file, numbers
with decimals will be rounded off to 2 decimals (or 0 decimals
sometimes). Is there an explanation or setting for that?

Similar Threads:

1.Exporting Number with Decimals to Text Rounds to 1 decimal place

I have data in Access that I need to export to a text file.  This data has 4 
or more decimal places and when I export the data the text file ends up with 
rounded data to the first decimal place.  Please help:) 


2.Why Access export three decimal but in text file only two decimal

Can any Access 2003 gurus kindly please advice me on the reason why Access 
export table options exports to a text file involving number data type with 
three decimal places but resulting in only two decimal places in my text file 
content ? 
Is it a bug that causes the last decimal digit to be truncated or some 
settings that could help rectify this problem of mine ?

3.Decimal point rounded off when exporting.


I'm running into an issue when exporting a table to a .csv file. The table 
contains columns of numbers many of which contain a decimal point and three 
digits after the decimal. For example 5.123. The problem is that once the 
table has been exported to the .csv file the third number (the thousandth) 
has been rounded and I only get the hundredth (for example 5.12). Have tried 
Access 2002 and 2003 with the same results. The data type of the columns is 
Number, Field Size is Double, with Decimal Places set to Auto. Any 
suggestions? Thanks in advance for your help. 


4.Problems with DBase IV file exporting after converting frojm MS Access 97 to MS Access 2000

In our MS ACCESS 97 database that we have converted to a MS Access 2000
database.  In this application we transfer (TransferDataBase) a table  with
a memo field to DBase IV.  Our application uses the dbf and dbt files
generated to do some further manipulation.  The system works under MS Access
97 but does not under Ms Access 2000.

Is the dbf page size exported different in MS Access 2000?

Any other driver or parameter settings in MS Access that could be affecting

We also notice that the new MS Access transfer cmd produces a new file with
an MDX extension.  Can we get Access to work without this file?

Any help greatly appreciated.


5.Keep decimal places when exporting to text files from Access

6. Export from Access to Text file: Specified number of decimal place

7. import text file errors - cutting off decimals

8. form rounding off decimals

Return to MS ACCESS


Who is online

Users browsing this forum: No registered users and 32 guest