LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Trailing zeros are dropping off

We have a VB front end application that calls into VBA code in Excel to
create report. The data for the report comes from a Sybase Database. The
data returned by Sybase looks good when running the stored procedure in
Sybase query tool.

When running through debugger in VBA code of Excel report, any number with a
trailing zero whether left or right of the decimal is dropped. So 20000
becomes 2, while 20000.01 stays 20000.01.

Number formatting of any kind is not working, because the result set already
has the truncated number.

The report used to work. The problem occurred once we moved to Windows XP
Pro. We have SP 1.

Right now, we are able to bypass this by adding .00001 to the number in the
stored Procedure - since we are rounding to .01, we can avoid the problem.

But still, has anyone seen this before or is this a known bug?

Any suggestions would be greatly appreciated. We have 20 more reports and
stored procedures to update and are looking for a better solution than adding
..00001.

Thanks.

John


 
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
Trailing zeros Gatz Excel Worksheet Functions 5 April 30th 09 08:34 PM
How do I stop Excel from dropping leading zeros? Carl Nash Excel Discussion (Misc queries) 9 April 22nd 09 08:11 PM
Trailing Zeros aftamath77 Excel Discussion (Misc queries) 3 October 7th 08 07:40 PM
Dropping Zeros Rene'' Excel Worksheet Functions 8 April 23rd 07 08:32 PM
Excel file saved as csv - dropping zeros Kathy Excel Discussion (Misc queries) 3 February 18th 05 07:15 PM


All times are GMT +1. The time now is 06:13 AM.

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"