Hi,
I have an error "Unterminated string constant" in my SQL request.
I guess my syntax is not correct...
mySQL1 = "SELECT * FROM viewTicket where ((TelRes = '" & NoTel & "') OR (TeleTra = '" & NoTel & "')
OR (TeleCel = '" & NoTel & "') OR (NoClient = '" & NoTel & "')) AND ((ServiceName = 'MODEM')
OR (ServiceName = 'UBR') OR (ServiceName LIKE '%BASE%')) "
In other words, I fill a form where the variable NoTel is grabbing what was entered in the form. Then, it search for that value in the database in the fields TelRes, TeleTra, Telecel or NoClient. And, there is a second criteria that search in the field ServiceName for the value MODEM, UBR or *BASE* (whatever is in the field, as long as it find the word BASE).
Can anybody tell me what the exact syntax should be?
Thanks!
I have an error "Unterminated string constant" in my SQL request.
I guess my syntax is not correct...
mySQL1 = "SELECT * FROM viewTicket where ((TelRes = '" & NoTel & "') OR (TeleTra = '" & NoTel & "')
OR (TeleCel = '" & NoTel & "') OR (NoClient = '" & NoTel & "')) AND ((ServiceName = 'MODEM')
OR (ServiceName = 'UBR') OR (ServiceName LIKE '%BASE%')) "
In other words, I fill a form where the variable NoTel is grabbing what was entered in the form. Then, it search for that value in the database in the fields TelRes, TeleTra, Telecel or NoClient. And, there is a second criteria that search in the field ServiceName for the value MODEM, UBR or *BASE* (whatever is in the field, as long as it find the word BASE).
Can anybody tell me what the exact syntax should be?
Thanks!