iserror function in a query

S

Sarah at DaVita

I have a query that brings in data from an excel file and appends it to a
table. Some of the columns have rows that return a #num when I run the query
so it fails. I have tried to use the iserror function to check for this and
replace with a null but it does not work. Formula I am trying to use is LE:
IIf(IsError([ELIE]![LE]),1101,[ELIE]![LE]). The column is formated as a
number and the data currently in the two cells that are causing the error is
1101? and 7xxx but could be anything. Can someone tell my why this is not
working? Thanks.
 
P

Pieter Wijnen

what the column is formatted as has no influence on the allowed data entry
in excel - try using isnumeric() or val() in your query

hth

pieter
 
S

Sarah at DaVita

isnumeric() worked - thank you very much.

Pieter Wijnen said:
what the column is formatted as has no influence on the allowed data entry
in excel - try using isnumeric() or val() in your query

hth

pieter

Sarah at DaVita said:
I have a query that brings in data from an excel file and appends it to a
table. Some of the columns have rows that return a #num when I run the
query
so it fails. I have tried to use the iserror function to check for this
and
replace with a null but it does not work. Formula I am trying to use is
LE:
IIf(IsError([ELIE]![LE]),1101,[ELIE]![LE]). The column is formated as a
number and the data currently in the two cells that are causing the error
is
1101? and 7xxx but could be anything. Can someone tell my why this is not
working? Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top