A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

linked table to excel and datatype



 
 
Thread Tools Display Modes
  #1  
Old July 18th, 2007, 08:52 AM posted to microsoft.public.access.tablesdbdesign
Ticotion
external usenet poster
 
Posts: 56
Default linked table to excel and datatype

Hi

I have a table that is linked to an excel spreedsheet. In the spreadsheet
there is a coloumn where the format is text (but there is a number shown). My
problem is that in access the datatype is set to number. I want the datatype
in access to be text. How can I change this in a linked table enviroment?

regards
ticotion
  #2  
Old July 18th, 2007, 08:52 PM posted to microsoft.public.access.tablesdbdesign
John W. Vinson
external usenet poster
 
Posts: 18,261
Default linked table to excel and datatype

On Wed, 18 Jul 2007 00:52:23 -0700, Ticotion
wrote:

Hi

I have a table that is linked to an excel spreedsheet. In the spreadsheet
there is a coloumn where the format is text (but there is a number shown). My
problem is that in access the datatype is set to number. I want the datatype
in access to be text. How can I change this in a linked table enviroment?


Excel doesn't have strong data typing, so Access must guess at the datatype
based on cell contents. As you have seen, it can and will guess wrong.

If you can, include a dummy row at the top of the spreadsheet with an
unambiguous text value in the first row of each column of such data. It may
also help to put an apostrophe before the value - e.g. for Zip codes put
'83660 rather than just 83660 in the cell.

John W. Vinson [MVP]
 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:38 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.