PC Review


Reply
Thread Tools Rate Thread

Format for Linking Excel 02 data to Access 02

 
 
=?Utf-8?B?Sm9u?=
Guest
Posts: n/a
 
      22nd Jan 2004
I have an Excel file where one column contains Quotation Numbers (text). Entries are generally 4 digits, however sometimes a range is entered (XXXX - YYYY). When I link to the Excel file, the Access wizard views the data as a numeric field thus producing a #Num! error for those entries that are ranges. I've tried formatting the Excel cells as text and changing the field data type to Text (it apparently can't be modified).

Can you offer a suggestion here?
 
Reply With Quote
 
 
 
 
Ken Snell
Guest
Posts: n/a
 
      22nd Jan 2004
When ACCESS links to a spreadsheet, it ignores the formatting of the cells
and instead decides on its own what is the "correct" format, based on the
initial rows. Thus, ACCESS can decide that a column in the spreadsheet is
numeric even though there are alphanumeric characters farther down.

Try importing the spreadsheet; ACCESS often handles the formatting
differently. Or you can add ' character to the front of the cells' values
that are numbers; that tells ACCESS to treat them as text.

Or, worst case, use Automation via VBA code to open the spreadsheet and read
it cell by cell and write it field by field into a recordset variable that
is based on a table that is to get the data.

--
Ken Snell
<MS ACCESS MVP>

"Jon" <(E-Mail Removed)> wrote in message
news:47CABC28-AED8-4636-B6AE-(E-Mail Removed)...
> I have an Excel file where one column contains Quotation Numbers (text).

Entries are generally 4 digits, however sometimes a range is entered (XXXX -
YYYY). When I link to the Excel file, the Access wizard views the data as a
numeric field thus producing a #Num! error for those entries that are
ranges. I've tried formatting the Excel cells as text and changing the
field data type to Text (it apparently can't be modified).
>
> Can you offer a suggestion here?



 
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
An error msg in Excel 2007 regarding Linking but no linking in fil Jugglertwo Microsoft Excel Misc 0 12th Sep 2008 02:08 AM
Data Entry Online, Data Format, Data Conversion and Data EntryServices through Data Entry Outsourcing admin.dataentryoutsourcing@gmail.com Microsoft Excel Misc 0 20th Mar 2008 01:45 PM
Data Entry Online, Data Format, Data Conversion and Data EntryServices through Data Entry Outsourcing admin.dataentryoutsourcing@gmail.com Microsoft Access Form Coding 0 20th Mar 2008 01:44 PM
Linking Excel 2002 files to Access 2000 - changes the format =?Utf-8?B?UGVycnlL?= Microsoft Access External Data 1 1st Oct 2007 08:38 PM
datetime format issues when linking access to excel =?Utf-8?B?U2Vhc29u?= Microsoft Excel Misc 0 6th Dec 2005 05:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:23 AM.