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.
:eek:

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

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
I tried that, but it produced more errors.
How do you do that so it doesn't spit the dummy?
 
Upvote 0
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 :ROFLMAO:
 
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,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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