PC Review


Reply
Thread Tools Rate Thread

data gets truncated

 
 
=?Utf-8?B?cmpzcnBo?=
Guest
Posts: n/a
 
      21st May 2005
I imported a number field that has four zeros and a number (00004). When the
number is transfered over into access, the only thing that shows up is a 4.
the zeros are gone. I can get the 4 zeros to show up?
 
Reply With Quote
 
 
 
 
MikeR
Guest
Posts: n/a
 
      21st May 2005
00004 and 4 are the same value numerically. Access doesn't need the leading zeros,
nor do any math functions using the value. Two ways to get the leading zeros back.

1. Change the data type to string. Not sure how it will display.
2. Use scripting to format it for display.

From the vbscript reference site at MS.
http://msdn.microsoft.com/library/de...iFunctions.asp

FormatNumber(Expression [,NumDigitsAfterDecimal [,IncludeLeadingDigit
[,UseParensForNegativeNumbers [,GroupDigits]]]])

Arguments

Expression
Required. Expression to be formatted.
NumDigitsAfterDecimal
Optional. Numeric value indicating how many places to the right of the
decimal are displayed. Default value is -1, which indicates that the computer's
regional settings are used.
IncludeLeadingDigit
Optional. Tristate constant that indicates whether or not a leading zero is
displayed for fractional values. See Settings section for values.
UseParensForNegativeNumbers
Optional. Tristate constant that indicates whether or not to place negative
values within parentheses. See Settings section for values.
GroupDigits
Optional. Tristate constant that indicates whether or not numbers are grouped
using the group delimiter specified in the control panel. See Settings section for
values.
HTH
MikeR
rjsrph wrote:
> I imported a number field that has four zeros and a number (00004). When the
> number is transfered over into access, the only thing that shows up is a 4.
> the zeros are gone. I can get the 4 zeros to show up?

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
data gets truncated SAm Microsoft Access Queries 2 5th Sep 2008 05:59 PM
Linking two spreadsheet, pulling data from one cell to another, data is being truncated Ben Microsoft Excel Worksheet Functions 0 13th Sep 2007 11:41 PM
Truncated data =?Utf-8?B?RGFuIEBCQ0JT?= Microsoft Excel Misc 3 27th Oct 2006 09:55 PM
Data being truncated FA Microsoft Access Forms 4 8th Mar 2006 05:57 PM
The data is truncated Keld Laursen Microsoft Dot NET Compact Framework 2 24th Nov 2004 06:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:30 AM.