LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Trailing zero's

First, it is not cler where the problem is occuriung. You need to be more
spedific

1) I s the data correct in the text file?
2) Do the data get get put into the Excel form correctly?
3) Or does the data get corrupted when the data is transfered to Access.
give examples of the code where the problem is occuring.

Second, why would you want to multiply your numbrs by 100? Is the problem
occuring with evry numbers or only certain type of numbers?

Third, excel displays number differently then it stroes the number in
memory. A number has an option of displaying (fromating) to a different
number of decimal places. for example a number stored as 123.456789 and
formated to one decimal place will look like 123.4 but when a caculation is
made still uses the full number of decimal places.

Fourth, leading zeroes in Excel don't change the number in memory. It just
adds extra zeroes when the number is displayed. An excel format of #00000
will make every number appear as 5 digits preceeding number that are less
than 5 digits with leading zeroes. for example 123 will be display as 00123
while 12345 will not get any leading zeroes.

"Mike" wrote:

I thought maybe some here could shed some light on my problem. I have created
a vb form to imported an excel file which is created from quickbooks into an
access database.

I have to create a txt file from this data. My problem is the trailing
zero's of the Amount fields drop. So say if I have 19.00 I need to remove the
decimal and show it as 0001900. If I have 19.10 I need remove the decimal and
add the three zero's to show 0001910.

What is happen's is 19.00 ends up like 0000019 and 19.10 ends up like 0000191.

I know this dosen't really have anything to do with excel but thought
someone here might be able to help.

Thanks Mike

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Zero's PAL Excel Worksheet Functions 3 June 26th 09 10:46 PM
Formatting numbers with leading and trailing zero's Victoria Excel Worksheet Functions 7 June 17th 08 06:14 PM
Array and not loseing trailing zero's 123.00 Jim at Eagle Excel Programming 3 April 15th 08 08:35 PM
Zero's # 2 Delaina Excel Discussion (Misc queries) 3 October 24th 05 08:02 PM
Zero's Krandall New Users to Excel 1 June 9th 05 08:11 PM


All times are GMT +1. The time now is 10:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"