G
Guest
Hi, I have users in Access 2k who suddenly can't run a date comparison in an
..mde file. This worked for at least a year previous to this. I hoped that
upgrading them to Access 2003 would help, but no luck. Of course, the code
works on my pc. I suspect a patch would fix it for them or a .dll, but can't
find one addressing this issue.
The code should check that the renewal date is more a year ago. On her pc,
however, the error code 3075 pops up. (I trapped for that now, but before I
did, it merrily marked all records as needing renewal.)
Here's the code:
Dim strSQL As String
strSQL = "SELECT * FROM qry_for_Reports WHERE ([status] = 'CP' and
[RenewalDate] > (DATE() - 365) " 'renewed in the past year
strSQL = strSQL & " And Month([CertExpireDate]) =" & cycle 'expires this
cycle (cycle is an integer, 3 or 9)
strSQL = strSQL & " And (([RenewalLetter] < (DATE() - 365)) Or
IsNull([RenewalLetter]))) " 'renewal letter is not current or not sent in
the past year
Any help you can give me is appreciated.
Thanks!
..mde file. This worked for at least a year previous to this. I hoped that
upgrading them to Access 2003 would help, but no luck. Of course, the code
works on my pc. I suspect a patch would fix it for them or a .dll, but can't
find one addressing this issue.
The code should check that the renewal date is more a year ago. On her pc,
however, the error code 3075 pops up. (I trapped for that now, but before I
did, it merrily marked all records as needing renewal.)
Here's the code:
Dim strSQL As String
strSQL = "SELECT * FROM qry_for_Reports WHERE ([status] = 'CP' and
[RenewalDate] > (DATE() - 365) " 'renewed in the past year
strSQL = strSQL & " And Month([CertExpireDate]) =" & cycle 'expires this
cycle (cycle is an integer, 3 or 9)
strSQL = strSQL & " And (([RenewalLetter] < (DATE() - 365)) Or
IsNull([RenewalLetter]))) " 'renewal letter is not current or not sent in
the past year
Any help you can give me is appreciated.
Thanks!