Linked Tables (1 Viewer)

jer

Registered User.
Local time
Today, 07:37
Joined
Nov 21, 2011
Messages
109
I have a linked excel table as the overall source for my db. However when the table is linked and i open it in access, some of the columns of information display #NUM!. All the fields are formatted to text fields so I dont know whats going on! Help Please!

Jer
 

James Dudden

Access VBA Developer
Local time
Today, 07:37
Joined
Aug 11, 2008
Messages
369
There can be lots of reasons for seeing this e.g. if a column is formatted as text and Access sees it as text but the value is a number or a date then it will show the dreaded #NUM!

You can get round this by forcing it to see the number as text by putting a ' in front of the number.

Have a look what cell the #NUM! is in in Access and then work out what the actual value is in Excel and let me know.
 

jer

Registered User.
Local time
Today, 07:37
Joined
Nov 21, 2011
Messages
109
Thanks but I figured it out. I ended up running a macro in Excel which solved the problem so that Access could read the spreadsheet.
 

gemma-the-husky

Super Moderator
Staff member
Local time
Today, 07:37
Joined
Sep 12, 2006
Messages
15,658
i would not like to use excel sheets as tables in access directly

the trouble is, you can put any data in an excel cell, which is diametrically opposed to sound database principles.
 

Millah

Registered User.
Local time
Yesterday, 23:37
Joined
Dec 27, 2011
Messages
12
You can always view the design of the linked table to see what datatype access thinks the field contains. Anything that is not of that datatype will give you an error.
 

Users who are viewing this thread

Top Bottom