MS Access export to text file decimal round off problem


    Sponsored Links


  • 1. Calendar Active X controls
    Hi, I'm wanting to put a control button on a form that when clicked will bring up the Active X Calendar. Once the identified date is selcted, place this date into the required date field. Having never coded for Active X before, I have no idea what to do. I can insert the calendar into the form, but what's next?? Stinky Pete
  • 2. snapshot on a web page (access xp)
    Hey All- I've exported a report to Access's "snapshot" format and want to put it on a website for users to view. However, when I click on the link to the snapshot file, I notice that my browser (IE6) attempts to open it as if it were a regular html page, thereby displaying a bunch of gobbledygook. Any ideas on what has to be tweeked (in the link/on the website or server) to make the browser know it should either (a) try to launch snapshot viewer or (b) save the file to disk as a snapshot. Thanks, -TD
  • 3. Do datasheets support multiple selections?
    How do I get the items selected from a datasheet? Does a datasheet support multiple selections? I know a ListBox has a "Selected" property that can be used when the MultiSelect property is set - but is there a way to get the same functionality with a datasheet? If not, I'm throwing all my datasheets in the junk..... why bother with datasheets? get all the same functionality with a listbox? For example, with a ListBox, it might look something like this; Dim varItem As Variant Dim ctl As Control Set ctl = frmMain!lstNames For Each varItm In ctl.ItemsSelected Debug.Print ctl.ItemData(varItm) Next varItm With a datasheet: Dim ctl As Control Set ctl = Forms!frmMain!frmInventory For Each varItem In ctl.ItemData(varItem) Debug.Print varItem Next does not work Dim frm As Form Set frm = Forms!frmMain!frmInventory.Form For Each varItem in frm.????? Debug.Print varItem Next
  • 4. vba for seeing if a field in a table is indexed
    I have a table called "tblParticipants" with a field called "ID", which must be indexed with No duplicates allowed. I am looking for a way of doing in vba a small if ..then ..else .. routine that looks at that field in that table and if it is not indexed, indexes it, and if it is indexed, jumps to a label. I have a query called "qryAddIndex" that will index the field, what I really need is the vba to test if the field is indexed or not. dixie

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 69 guest