Can I get rid of these #num errors!?

oliviar

Board Regular
Joined
Sep 12, 2010
Messages
184
Hi guys,
I have a linked table, and it has #num errors everywhere. It is because the report I download puts "-" where a number COULD be, but isn't. I have tried creating Iif columns next to them saying 'if its an error, blank, otherwise put in the number' but that creates its own errors.
:eeek:

Oh, and I have seen solutions that use Excel to fix it, but I really want the fix to be in access, not excel.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
How do you do that so it doesn't spit the dummy?

What does this mean?

Anyway: solution = don't use a linked table that mixes text and numbers. It's hopeless joining bad data to a good database, without some cleanup procedures.
 
Upvote 0
That is not a solution.
The data I am trying to input comes from a fixed source and I cannot change it. The change has to happen inside Access

Spit the dummy means to get unhappy. Like a baby throwing a fit. Its an Australianism :rofl:
 
Upvote 0
design a temp table
make the column type text instead of number for the field that's causing problems
import the excel data into the temp table
because the column type is text, the - won't cause a problem
then update the temp table, set field = null where field is '-'
then append to the real table using the temp table as the source
the text numbers will be automatically converted into numeric numbers
 
Upvote 0
Excellent, thank you.
I also assume I can leave this temp table active, as a waypoint between my originator and my final data? ;)
 
Upvote 0
Spit the dummy means to get unhappy. Like a baby throwing a fit. Its an Australianism

I learned a new phrase today - never would have guessed it.
ξ
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,754
Members
452,940
Latest member
rootytrip

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top