I have 3 date fields in my db and I want to be able to brng up all records that have any one of those fields between certain dates. example, if any of the dates in those 3 fields fall in this week bring the record up
Select * FROM mytable WHERE datefieldA >= today AND datefieldA <= weekfromtoday OR datefieldB >= today and <=weekfromtoday OR datefieldC >=today and datefieldC <=weekfromtoday
when I try what I have above I get :
Error Type:
Microsoft JET Database Engine (0x80040E14)
Syntax error (missing operator) in query expression
'datefieldA >= #12/28/2001# And datefieldA <= #1/4/2002# Or datefieldB >= #12/28/2001# And datefieldB <= #1/4/2002# Or datefieldC >= #12/28/2001# And datefieldC <= #1/4/2002#'.
/week.asp, line 71
Select * FROM mytable WHERE datefieldA >= today AND datefieldA <= weekfromtoday OR datefieldB >= today and <=weekfromtoday OR datefieldC >=today and datefieldC <=weekfromtoday
when I try what I have above I get :
Error Type:
Microsoft JET Database Engine (0x80040E14)
Syntax error (missing operator) in query expression
'datefieldA >= #12/28/2001# And datefieldA <= #1/4/2002# Or datefieldB >= #12/28/2001# And datefieldB <= #1/4/2002# Or datefieldC >= #12/28/2001# And datefieldC <= #1/4/2002#'.
/week.asp, line 71