[mso] Re: Excel & Access Text vs Numeric

  • From: "Ray Blake" <ray@xxxxxxxxx>
  • To: <mso@xxxxxxxxxxxxx>
  • Date: Mon, 1 Nov 2004 21:48:03 -0000

Glenda,

Is this query related to this one you posted last year? If so, I think
the answer's pretty much the same!

Ray

------------------------------------
GR Business Process Solutions
Ray Blake
Head of Software Design
ray@xxxxxxxxx
Braedon
Newell Road
Hemel Hempstead
Herts HP3 9PD
tel: 01442 396518
fax: 01442 389353
mobile: 07834 226601
------------------------------------


-----Original Message-----
From: Ray Blake [mailto:ray@xxxxxxxxx] 
Sent: 11 November 2003 21:46
To: 'mso@xxxxxxxxxxxxx'
Subject: RE: [mso] Access Update Query & Trailing Zeros


Glenda, 

I think the format you're after is "0.00" rather than "#.##". The '#'
placeholder will only give a character if there is significant data
there, whereas the zero will force a character to appear, even if it's a
zero.

The reason it may look right in Excel is if you have the filed formatted
as a number with 2 decimal places from the cell-format dialog.

Ray

_____________

This email is from Ray Blake, Head of Software Design, GR Business
Process Solutions. It is confidential and intended for the addressee
only. The contents are private and may be legally privileged. If you
receive this email in error we would be grateful if you would advise the
sender and delete the email from your system.

For more information on the services that we offer please visit us at
our website: - www.grbps.com 


-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On
Behalf Of Glenda Wells
Sent: 11 November 2003 20:42
To: mso@xxxxxxxxxxxxx
Subject: [mso] Access Update Query & Trailing Zeros

Hi All.
I import a table of two fields and about 25,000 records from Excel.  The
field I'm having problems with is a numeric field formatted as #.##

The data should look like 0.21 or 1.00 or 0.40, which it does...in
Excel.

When I import this data into Access, the values of this particular field
lose the trailing zero.  Instead of 1.00, I get 1. Instead of 0.40, I
get 0.4

If I import the data to a text only field, I still lose the trailing
zeros.  Brilliant techie that I am, I ran an update query to change 0.4
to 0.40, 0.5 to 0.50, etc.

The update query ran fine with numerous records being updated.  However,
when I view the data, I still only see 0.4 and 0.5 without trailing
zeros.  I've tried formatting the text field but maybe I'm not doing it
right.  I tried re-running the update query but the value is not
found...even though I see 0.4, the system tells me 0.4 does not exist. I
even copied the field value and pasted it to my update query field.
Murphy's not dead, just on an extended vacation in Central Florida.

HELLLPPPPP!  /g


*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: