C
CornDog
I have a Comobox that can look up any type of variable
from any table. This value is passed to a SQL statement to
be used as a filter criteria.
If its a string it works fine. But DATES and CURRENCIES
screw up because of type mismatch. Is there some easy way
to identify a string as fitting a DATE format(or type) or
a string as being of CURRENCIE format(or type).
For exampel something like this:
IsDate("Mickey Mantle") returns False
IsDate("08/08/01") returns True
IsDate("Febuary 08, 2001") returns True
IsCurrency("Febuary 08, 2001") returns False
IsCurrency("$1.00") returns True
Casue then I can modify the SQL statement based on the
boolean result.
from any table. This value is passed to a SQL statement to
be used as a filter criteria.
If its a string it works fine. But DATES and CURRENCIES
screw up because of type mismatch. Is there some easy way
to identify a string as fitting a DATE format(or type) or
a string as being of CURRENCIE format(or type).
For exampel something like this:
IsDate("Mickey Mantle") returns False
IsDate("08/08/01") returns True
IsDate("Febuary 08, 2001") returns True
IsCurrency("Febuary 08, 2001") returns False
IsCurrency("$1.00") returns True
Casue then I can modify the SQL statement based on the
boolean result.