Been having awful trouble trying to work out why the following line of code isn't working. Any assistance greatly appreciated:
Both the CaseID and InvCode WHERE criteria are working, both tested individually and in combination, however as soon as i add the ChargeDate Between criteria it all goes tits-up...
I have looked into every variation i can think of for setting the Format(Date) for the StartDate and EndDate variables with no success.
It's the last little piece of code i need to get working so i can make what i'm working on functional before moving onto the next step which is dependent upon this step.
Once again any assistance is greatly appreciated...
:banghead:
Code:
Set rs = db.OpenRecordset("SELECT * FROM tblCharges WHERE IsNull(InvCode) And CaseID = " & CaseID & " And ChargeDate BETWEEN #" & StartDate & "# AND #" & EndDate & "#")
I have looked into every variation i can think of for setting the Format(Date) for the StartDate and EndDate variables with no success.
It's the last little piece of code i need to get working so i can make what i'm working on functional before moving onto the next step which is dependent upon this step.
Once again any assistance is greatly appreciated...
:banghead: