D
Dick Watson
I'm linking to an Excel file the contents of which are not mine to muck
with. I'm also doing this on a recurring basis, so importing all of the data
and polishing it continually is not a great solution. Since this is somebody
else's idea of a "database" in Excel, it has the usual assortment of mangled
data typing including text in fields the Access link detects (generally
correctly so) as numeric or date/time. Every solution I can find in the
archives pretty much comes down to fix the Excel or import it all as text
(programmatically, if necessary) and then fix the data in Access.
For these reasons, I was trying to create a query to clean up the problem
children and then base everything else off that query rather than off the
underlying linked table.
If I set a criteria of Is Null on one of the fields with problematic data,
the #Num! records are in the result.
If I try to create a calculated field of
IIf(IsNull([ProblemField]),Null,[ProblemField]) I still get #Num! falling
through. Likewise for IsNumeric().
So, my question is how can I clean the #Num! data up in a calculated field?
with. I'm also doing this on a recurring basis, so importing all of the data
and polishing it continually is not a great solution. Since this is somebody
else's idea of a "database" in Excel, it has the usual assortment of mangled
data typing including text in fields the Access link detects (generally
correctly so) as numeric or date/time. Every solution I can find in the
archives pretty much comes down to fix the Excel or import it all as text
(programmatically, if necessary) and then fix the data in Access.
For these reasons, I was trying to create a query to clean up the problem
children and then base everything else off that query rather than off the
underlying linked table.
If I set a criteria of Is Null on one of the fields with problematic data,
the #Num! records are in the result.
If I try to create a calculated field of
IIf(IsNull([ProblemField]),Null,[ProblemField]) I still get #Num! falling
through. Likewise for IsNumeric().
So, my question is how can I clean the #Num! data up in a calculated field?