Using the Find method of the ADODB.Recordset object when the query data contains this character:
Hi, Ive been having some problems to do this.
OK I have two (2) questions for this code, what is the wild char I should use: "%" or "*". And second, what happen if the arg parameter contains the char in its definition. For example arg = "VB Programmers Guide to the Windows 32 API". The arg string contains the character so when i do call the Find method it will generate an Error. (I think is error 3011, bah it doesnt matter). So in conclusion, how do I query data when the char appears.??
Hi, Ive been having some problems to do this.
Code:
cnn.open sCnnStr The connections is stablished
sQry = "SELECT * FROM Table"
rst.open sQry, cnn Opening the recorset
rst.find "field LIKE " & arg & "*" do the search
OK I have two (2) questions for this code, what is the wild char I should use: "%" or "*". And second, what happen if the arg parameter contains the char in its definition. For example arg = "VB Programmers Guide to the Windows 32 API". The arg string contains the character so when i do call the Find method it will generate an Error. (I think is error 3011, bah it doesnt matter). So in conclusion, how do I query data when the char appears.??