cavscout
Registered User.
- Local time
- Today, 02:29
- Joined
- Mar 13, 2003
- Messages
- 74
I have a set of queries that will Approve and Revoke Credit Approval based on given criteria. The field giving me a problem is the [ReviewDate]. I want the [ReviewDate] to be not more than 6 months old. This date is held in a table I'm linking to via ODBC and the field is formatted as text (I cannot change this). To get around the text, I am using
((Date()-DateValue([ReviewDate]))/30) < 6 = Approved
The Approval Query works as it should.
When I go to revoke the Approval I simply reversed the logic in the criteria:
((Date()-DateValue([USER_FIELD_1]))/30) >= 6 = Revoke
I get the Data Type Mismatch Error. If I remove the Criteria from the query it works.
I tried using ' Like "6" ' as my criteria but no luck there. I Still get Data Type Mismatch.
Any ideas? Thanks in advance.
Access 97 on Win2K
((Date()-DateValue([ReviewDate]))/30) < 6 = Approved
The Approval Query works as it should.
When I go to revoke the Approval I simply reversed the logic in the criteria:
((Date()-DateValue([USER_FIELD_1]))/30) >= 6 = Revoke
I get the Data Type Mismatch Error. If I remove the Criteria from the query it works.
I tried using ' Like "6" ' as my criteria but no luck there. I Still get Data Type Mismatch.
Any ideas? Thanks in advance.
Access 97 on Win2K