Hi,
I have a database where a date is entered into a field that is nvarchar. But when I try and compare the field to a date supplied on a new form, I get the following:
The expression is typed incorrectly, or is too complex to be evaluated. For example, a numeric expression may contain too many complicated elements. Try simplifying the expression by assigning parts of the expression to variables.
I have an older copy of the database that works fine. So I assume that it's because one or more of the dates are invalid.
Is there an easy way to check the values in the table? Like this:
select * from table where field not IsDate(field)
???
I thought about scrubbing the data. But is there a better approach?
Thanks,
Mark
I have a database where a date is entered into a field that is nvarchar. But when I try and compare the field to a date supplied on a new form, I get the following:
The expression is typed incorrectly, or is too complex to be evaluated. For example, a numeric expression may contain too many complicated elements. Try simplifying the expression by assigning parts of the expression to variables.
I have an older copy of the database that works fine. So I assume that it's because one or more of the dates are invalid.
Is there an easy way to check the values in the table? Like this:
select * from table where field not IsDate(field)
???
I thought about scrubbing the data. But is there a better approach?
Thanks,
Mark