C
ccarpediem
Guest
I have a table (lets say TABLE1) that has a column (call it COL1) defined as text. Even though it is defined as text it may hold valid alphnumeric, numeric, or date data. Depending on other settings in the table I will know what datatype is stored in that column.
Say if COL2 = 1 then I know what is in COL1 should be treated as a date value. This simplifies it, but serves as an example.
I was hoping to use a scalar function and write a query like this.
Select *
From Tab1
Where COL2 = 1
And Date(COL1) > #9/9/2001#
I see this is not available in Access (not sure if it would work in any thing else either), does anyone have any ideas how to accomplish this in Access?
Thanks much!
Say if COL2 = 1 then I know what is in COL1 should be treated as a date value. This simplifies it, but serves as an example.
I was hoping to use a scalar function and write a query like this.
Select *
From Tab1
Where COL2 = 1
And Date(COL1) > #9/9/2001#
I see this is not available in Access (not sure if it would work in any thing else either), does anyone have any ideas how to accomplish this in Access?
Thanks much!