boneKrusher
02-08-2006, 10:50 AM
Hi All,
I am trying to make the following sequel statement but I am having trouble. I want to add another "WHERE" crtieria but I am having trouble.
strSQL = "SELECT Audit_Schedule.* " & _
"FROM Audit_Schedule " & _
"WHERE & Month([AUD_due])= " & intMonth & " AND Year([AUD_due]) = " & MyYear & _
" ORDER BY ApptStartTime;"
I want to add "ACTIVE = -1" (active is a yes/no field). I can't figure it out!
Thanks,
bones
I am trying to make the following sequel statement but I am having trouble. I want to add another "WHERE" crtieria but I am having trouble.
strSQL = "SELECT Audit_Schedule.* " & _
"FROM Audit_Schedule " & _
"WHERE & Month([AUD_due])= " & intMonth & " AND Year([AUD_due]) = " & MyYear & _
" ORDER BY ApptStartTime;"
I want to add "ACTIVE = -1" (active is a yes/no field). I can't figure it out!
Thanks,
bones