Google Answers Logo
View Question
 
Q: Specify data types within Access for linked spreadsheets (how to?) ( No Answer,   1 Comment )
Question  
Subject: Specify data types within Access for linked spreadsheets (how to?)
Category: Computers > Programming
Asked by: vaughn-ga
List Price: $5.00
Posted: 15 Dec 2002 01:08 PST
Expires: 14 Jan 2003 01:08 PST
Question ID: 124855
How do I specify data types within Access for linked spreadsheets? For
some reason, Access keeps tagging my Excel spreadsheet’s zipcode
column as a number. It is actually a text field (some of the zipcodes
contain zip+4 = “92119-3823”).

I’ve tried everything I can think of, but STUPID STUPID Access keeps
seeing that the majority of rows in the column look like normal
numbers (most don’t have zip+4), so it specifies that the linked
column is numeric. Then when I use it, it gives me all kinds of errors
because it contains clearly non-numeric data.

I want to find some way to tell Access: this column is TEXT YOU IDIOT.
Whatever you think you STUPID PROGRAM, just leave it as TEXT!!!!

Yes, I’m frustrated. :-)

Request for Question Clarification by mathtalk-ga on 15 Dec 2002 11:46 PST
Hi, vaughan-ga:

Please advise us what version of Access and what version of Excel you
are working with.  Also, confirm that you have set the formatting of
the entire column in Excel to text (Excel allows the formatting
properties to vary on a cell by cell basis, where in treating a linked
worksheet as a relational table you expect all entries within a column
to have the same format/datatype).

regards, mathtalk-ga

Clarification of Question by vaughn-ga on 15 Dec 2002 13:43 PST
Excel 2000 9.0.3821 SR-1
Access 2000 9.0.3821 SR-1

Yes, the entire column is formatted text.

Clarification of Question by vaughn-ga on 15 Dec 2002 13:52 PST
Isn't there some way to SPECIFY within Access the data type for linked
columns instead of relying upon Access to guess? How can you have any
control with spreadsheets formatted as "general" that have info that
'looks' like a number but is actually text?

Case in point, postal codes. Maybe MOST of the time they only have
numeric data, but sometimes you get a Canadian order with an
alpha-numeric postal code (or zip+4). In your Access database, all of
the internal tables that relate to the linked spreadsheet have to KNOW
what data type they are. They can't have it change unexpectedly as the
linked data gets changed.

I'm just hoping, thinking that there MUST be a solution to this.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Specify data types within Access for linked spreadsheets (how to?)
From: foofoodog-ga on 15 Dec 2002 19:50 PST
 
One workaround, to get Access to treat it as text, is to add the
apostrophe(') formatting code to the beginning of all the zipcode
entries in the spreadsheet so that 90210 becomes '90210.

Also see what advice the vendor has at
http://support.microsoft.com/default.aspx?scid=kb;en-us;208414.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy