New answers tagged

1

An "and" can only have 2 child nodes, thus you should amend your CAML: myquery.Query = " <Where> <And> <Eq> <FieldRef Name='Company'/><Value Type='Text'>" + ddComFilter.SelectedItem.Text + "</Value> </Eq> </And> <And> <Gt> <FieldRef ...


4

You can not have more than 2 statements in every <And> / <Or> tag. Also you seem to be missing an <Eq> (or whatever you need) around your first <FieldRef> tag. So instead do this myquery.Query = " <Where> <And> <Eq> <FieldRef Name='Company'/><Value Type='Text'>" + ...



Top 50 recent answers are included