Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Currency Data Dropping Zeros
Old 03-22-2005, 10:49 PM Currency Data Dropping Zeros
Novice Talker

Posts: 11
Trades: 0
I am pulling data from an Access database into an aspx page. I have 3 fields specified as type Currency in Access. But when the DataAdapter pulls the data into the Dataset, the zeros are dropped.

For example, 37.40 in Access becomes 37.4 on my aspx page.
An amount such as 13.95 shows up as 13.95 as it should, so it's just the trailing zeros that are being dropped.

How can I get this data to show up properly in my DataSet?

Thanks
-Tom
bowfonz is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-22-2005, 11:33 PM
Novice Talker

Posts: 11
Trades: 0
Nevermind, I figured this one out on my own for a change.
I simply wrapped my variable inside the Format function with "###.00" as the style.
Works fine for what I'm doing.
bowfonz is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Currency Data Dropping Zeros
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24059 seconds with 12 queries