Good morning,
Let me start with this .... :banghead:
I am trying to do a simple query that pulls data from a date range using the BETWEEN operator. Simple right? Apparently not as simple as I thought.
So I have 4 fields I am pulling info from. RSID, PCounty, Type, and RDate. For the date field on my query it looks like this:
The Criteria looks something like this. *Note: I will be using a form for the user to select the dates, I am just using these 2 dates as a test for my query.
After I run my query it pulls the exact data I want. But the problem is that when I go to sort it, I get an error that says "Invalid Use of Null".
Any ideas guys? I will post my SQL too if that helps. Thanks in advance for any leads to a solution.
Let me start with this .... :banghead:
I am trying to do a simple query that pulls data from a date range using the BETWEEN operator. Simple right? Apparently not as simple as I thought.
So I have 4 fields I am pulling info from. RSID, PCounty, Type, and RDate. For the date field on my query it looks like this:
Code:
ReferralDate: CDate([RDate])
Code:
Between CDate("01/01/2001") And CDate("01/01/2013")
Any ideas guys? I will post my SQL too if that helps. Thanks in advance for any leads to a solution.
Code:
SELECT tblReferalSource.RSID, tblParticipantInfo.PCounty, tblReferalSource.Type, CDate([RDate]) AS ReferralDate
FROM tblParticipantInfo INNER JOIN tblReferalSource ON tblParticipantInfo.ParticipantID = tblReferalSource.ParticipantID
WHERE (((CDate([RDate])) Between CDate("01/01/2001") And CDate("01/01/2013")));