R
Ray C
I recently found that my database crashed if I ever searched for a record
with "&" in the title. E.G If strField = "SupplierName" and varInfo =
"Brighton & Hove", when it has been processed by the following line
strCriteria = BuildCriteria(strField, dbText, varInfo)
gets converted to
"SupplierName = "Brighton" & "Hove"" and the search Fails.
Similarly "Brighton and Hove" gets converted to
"SupplierName = "Brighton" and "Hove"" and also fails the search
However "Brighton - Hove" gets converted to
"SupplierName = "Brighton - Hove"" and is found.
Note the position of the quotation marks.
(All the above examples assume that the information contained in the fields
exists as stated)
I assume that "&", "and" are reserved characters but how would I get round
the problem?
Thanka Ray C
with "&" in the title. E.G If strField = "SupplierName" and varInfo =
"Brighton & Hove", when it has been processed by the following line
strCriteria = BuildCriteria(strField, dbText, varInfo)
gets converted to
"SupplierName = "Brighton" & "Hove"" and the search Fails.
Similarly "Brighton and Hove" gets converted to
"SupplierName = "Brighton" and "Hove"" and also fails the search
However "Brighton - Hove" gets converted to
"SupplierName = "Brighton - Hove"" and is found.
Note the position of the quotation marks.
(All the above examples assume that the information contained in the fields
exists as stated)
I assume that "&", "and" are reserved characters but how would I get round
the problem?
Thanka Ray C