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  

Import from Excel



 
 
Thread Tools Display Modes
  #1  
Old June 27th, 2009, 01:51 AM posted to microsoft.public.access.tablesdbdesign
dan
external usenet poster
 
Posts: 1,408
Default Import from Excel

When I import from an Excel into Access 2003 table, in one field (Text field)
the project numbers appear in a scientific format with exponents. The data in
the field are all numeric but I want the field to be defined as a Text. Is
there a way to avoid the scientific formats. Surprisingly sometimes it worked
fine but I do not know when.
Can somebody help ?

Thanks a lot
dan

  #2  
Old June 27th, 2009, 02:41 AM posted to microsoft.public.access.tablesdbdesign
Gina Whipp
external usenet poster
 
Posts: 3,500
Default Import from Excel

Dan,

The first thing I would check is is the column wide enough. Go to the table
and expland the column the same as you would in Excel.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"Dan" wrote in message
...
When I import from an Excel into Access 2003 table, in one field (Text
field)
the project numbers appear in a scientific format with exponents. The data
in
the field are all numeric but I want the field to be defined as a Text. Is
there a way to avoid the scientific formats. Surprisingly sometimes it
worked
fine but I do not know when.
Can somebody help ?

Thanks a lot
dan



  #3  
Old June 27th, 2009, 10:33 PM posted to microsoft.public.access.tablesdbdesign
June7 via AccessMonster.com
external usenet poster
 
Posts: 173
Default Import from Excel

Excel doesn't know about data types. You can format a cell to display
contents as numeric, text, or date but the contents are not of these types.
Change the cell formatting and your value may look completely different.
You say the value in the Access table field has scientific format. You are
positive the field is setup as text type? How many digits are involved in the
original value?

Dan wrote:
When I import from an Excel into Access 2003 table, in one field (Text field)
the project numbers appear in a scientific format with exponents. The data in
the field are all numeric but I want the field to be defined as a Text. Is
there a way to avoid the scientific formats. Surprisingly sometimes it worked
fine but I do not know when.
Can somebody help ?

Thanks a lot
dan


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...esign/200906/1

  #4  
Old June 28th, 2009, 12:04 AM posted to microsoft.public.access.tablesdbdesign
dan
external usenet poster
 
Posts: 1,408
Default Import from Excel

The Excel has the part number as 300270310 and after import into Access it
appears as 300270310.00 in some cases and in other cases as 3.0270e.xxx. The
field in Access is defined as Text.

The one I could overcome is to change it to Numeric then the data is
imported correctly. But in that case I have to change all other queries
comparing tables etc.... I would like to keep the Access definition for this
field as Text only. Maybe I can change the columns in Excel (Text to data)
and then try to import. But in that case it involves manual intervention. The
field however contains only 9 digits.
Thanks....

"June7 via AccessMonster.com" wrote:

Excel doesn't know about data types. You can format a cell to display
contents as numeric, text, or date but the contents are not of these types.
Change the cell formatting and your value may look completely different.
You say the value in the Access table field has scientific format. You are
positive the field is setup as text type? How many digits are involved in the
original value?

Dan wrote:
When I import from an Excel into Access 2003 table, in one field (Text field)
the project numbers appear in a scientific format with exponents. The data in
the field are all numeric but I want the field to be defined as a Text. Is
there a way to avoid the scientific formats. Surprisingly sometimes it worked
fine but I do not know when.
Can somebody help ?

Thanks a lot
dan


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...esign/200906/1


  #5  
Old June 28th, 2009, 01:58 AM posted to microsoft.public.access.tablesdbdesign
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Import from Excel

On Sat, 27 Jun 2009 16:04:01 -0700, Dan wrote:

The Excel has the part number as 300270310 and after import into Access it
appears as 300270310.00 in some cases and in other cases as 3.0270e.xxx. The
field in Access is defined as Text.

The one I could overcome is to change it to Numeric then the data is
imported correctly. But in that case I have to change all other queries
comparing tables etc.... I would like to keep the Access definition for this
field as Text only. Maybe I can change the columns in Excel (Text to data)
and then try to import. But in that case it involves manual intervention. The
field however contains only 9 digits.
Thanks....


Try inserting a blank row at the very top of the spreadsheet with an
unambiguosly text value. Somehow Excel is assuming that this field must be
converted to a number to import into Access.

Also... double and triplecheck that the Access table field IS in fact text
(and not a Lookup Field or a Number of some flavor). I'm skeptical.
--

John W. Vinson [MVP]
  #6  
Old June 28th, 2009, 06:18 AM posted to microsoft.public.access.tablesdbdesign
June7 via AccessMonster.com
external usenet poster
 
Posts: 173
Default Import from Excel

The only other thing I could think to try is to explicitely convert the Excel
value to a string with VBA Cstr function or Format function.

Dan wrote:
The Excel has the part number as 300270310 and after import into Access it
appears as 300270310.00 in some cases and in other cases as 3.0270e.xxx. The
field in Access is defined as Text.

The one I could overcome is to change it to Numeric then the data is
imported correctly. But in that case I have to change all other queries
comparing tables etc.... I would like to keep the Access definition for this
field as Text only. Maybe I can change the columns in Excel (Text to data)
and then try to import. But in that case it involves manual intervention. The
field however contains only 9 digits.
Thanks....

Excel doesn't know about data types. You can format a cell to display
contents as numeric, text, or date but the contents are not of these types.

[quoted text clipped - 12 lines]
Thanks a lot
dan


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...esign/200906/1

 




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 04:28 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.