G
Guest
I dont know exactly how to explain this but I'll give it a go. I apologize in
advance.
I have a form where I enter a date range and access goes to another
application and extracts claims where the claim date ranges matches the
"search criteria" in access. The "search criteria" can be a single date or a
date range. The other appication is basically a table full of claim
information like claim numbers and dates and whatever. This is what I'm
using:
FromDOS and ToDOS are the search criteria
fDOS and tDOS are the dates stored in the other application
'If FromDOS >= fDOS And ToDOS <= tDOS Then ...
The problem with that is if there are two claims (think two rows in that
table) in that date range, it fails and I get no data back.
'If fDOS >= FromDOS And tDOS <= ToDOS Then
This one solves that problem and retrieves both of those claims, problem
with that is, it retrieve any data if I only know one date. (If I only know
one date, the From and To dates are equal).
It just seems I can't have my cake and eat it too with this. Is there a
between statement or something that I can use? I have looked at this too long
to come up with a reasonable answer.
advance.
I have a form where I enter a date range and access goes to another
application and extracts claims where the claim date ranges matches the
"search criteria" in access. The "search criteria" can be a single date or a
date range. The other appication is basically a table full of claim
information like claim numbers and dates and whatever. This is what I'm
using:
FromDOS and ToDOS are the search criteria
fDOS and tDOS are the dates stored in the other application
'If FromDOS >= fDOS And ToDOS <= tDOS Then ...
The problem with that is if there are two claims (think two rows in that
table) in that date range, it fails and I get no data back.
'If fDOS >= FromDOS And tDOS <= ToDOS Then
This one solves that problem and retrieves both of those claims, problem
with that is, it retrieve any data if I only know one date. (If I only know
one date, the From and To dates are equal).
It just seems I can't have my cake and eat it too with this. Is there a
between statement or something that I can use? I have looked at this too long
to come up with a reasonable answer.