Guest_imported
New member
- Jan 1, 1970
- 0
Does anyone know how to do an sql query using the like keyword from a VB app?
Ex: sqlSel = "Select ""INVOICE"".""Debtor AC NO"" as acno, ""INVOICE"".""JOB NO"" AS JOB "
sqlSel = sqlSel & ", ""INVOICE"".""QUOTE NO"" AS QTE FROM ""INVOICE"" "
sqlSel = sqlSel & "WHERE ""INVOICE"".""QUOTE NO"" LIKE " & Trim(txtQuoteNum.Text) & "%"
Ex: sqlSel = "Select ""INVOICE"".""Debtor AC NO"" as acno, ""INVOICE"".""JOB NO"" AS JOB "
sqlSel = sqlSel & ", ""INVOICE"".""QUOTE NO"" AS QTE FROM ""INVOICE"" "
sqlSel = sqlSel & "WHERE ""INVOICE"".""QUOTE NO"" LIKE " & Trim(txtQuoteNum.Text) & "%"