ClassyLinks
Programmer
Hey all.
This is driving me CRAZY!.
I'm attempting to count the number of records in a table that meet my criteria. I can get it to work if I only use one condition....but not more.
This works:
JulLLContactStay = conn.execute("SELECT count(LLID) FROM tblLLContact WHERE LLARea = 1 "
BUT...when I attempt to also qualify it with a date condition....I want the ContactDate to be anytime in July/2002 it dies with an Invalid Procedure call.
Can anyone tell me how to add the date criteria?
I've tried every combination of instr(ContactDate) I can think of.
TIA!!
Notes:
**ContactDate is a Date/Time Field in the db set to Long Date format
**DB is Access2000
ClassyLinks
This is driving me CRAZY!.
I'm attempting to count the number of records in a table that meet my criteria. I can get it to work if I only use one condition....but not more.
This works:
JulLLContactStay = conn.execute("SELECT count(LLID) FROM tblLLContact WHERE LLARea = 1 "
BUT...when I attempt to also qualify it with a date condition....I want the ContactDate to be anytime in July/2002 it dies with an Invalid Procedure call.
Can anyone tell me how to add the date criteria?
I've tried every combination of instr(ContactDate) I can think of.
TIA!!
Notes:
**ContactDate is a Date/Time Field in the db set to Long Date format
**DB is Access2000
ClassyLinks