Isaac
asked on
CAML query SharePoint 2007
I have a list that has an "EventDate" column. I want to be able to show items that are between the next 30 - 60 days. I have the following query but not working correctly
Having the <And> returns nothing and the <Or> includes everything less than 60 and less than 30.
Any ideas?
<View><Query><Where><And><Geq><FieldRef Name="EventDate"/><Value Type="DateTime"><Today Offset="31"/></Value></Geq><Leq><FieldRef Name="EventDate"/><Value Type="DateTime"><Today Offset="60"/></Value></Leq></And></Where></Query></View>
Having the <And> returns nothing and the <Or> includes everything less than 60 and less than 30.
Any ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER