I have this query:
Bob Mac
CAMLQuery: "<Query>" +
"<OrderBy>" +
"<FieldRef Name='ID' Ascending='FALSE'></FieldRef>" +
"</OrderBy>" +
"<Where>" +
"<And>" +
"<And>" +
"<Contains>" +
"<FieldRef Name='Column1' /><Value Type='Text'>" + newval + "</Value>" +
"</Contains>" +
"<Neq>" +
"<FieldRef Name='Title' /><Value Type='Text'>" + curTitle + "</Value>" +
"</Neq>" +
"</And>" +
"<Or>" +
"<Contains>" +
"<FieldRef Name='Column2' /><Value Type='Text'>" + newval + "</Value>" +
"</Contains>" +
"<Neq>" +
"<FieldRef Name='Title' /><Value Type='Text'>" + curTitle + "</Value>" +
"</Neq>" +
"</Or>" +
"</And>" +
"</Where>" +
"</Query>",
it throws no errors and only returns matching results from column1. I would like to it return matching results if either or both columns finds a match. Can anyone help?Bob Mac