I've an issue with a caml query - to select a sharepoint item where the field "Title" is of a specific value...
Dim camlQuery As New CamlQuery()
camlQuery.ViewXml = "<Query><where><Contains><FieldRef Name='Title'/><Value Type='Text'>" & orderno & "</value></Contains></where></Query>"
Problem is this returns all the items in the list. Orderno will be a guid, so it is unique. I've read a few questions on here that have had a few suggestions but nothing has worked.
I've tried replacing
<eq>
with
<contains>
But that's no use. The start of the query used to read
<View><Query>
And I've changed it but that's had no effect either. As far as I can see the query looks OK - not sure why this is going wrong.
Edit: Also, this is using microsoft.sharepoint.client so .items() isn't available on the list object.