The following select statement works and I'm using the % because this number has a hyphen and any two numbers after that that I need, for example 00010044-01:
SQL6 = "SELECT NO, LNAME, FNAME, MNAME, DOB"
SQL6 = SQL6 & " from COMP9.DBO.proc2"
SQL6 = SQL6 & " Where NO like '00010044%'"
set rs6 = my_conn.Execute(SQL6)
I'm using a query by having the user identify "EventNo". So:
Dim EventNo
and EventNo = ""
but I can't get EventNo to work with the same # of 00010044 in tho following select statement:
SQL6 = "SELECT NO, LNAME, FNAME, MNAME, DOB"
SQL6 = SQL6 & " from COMP9.DBO.proc2"
SQL6 = SQL6 & " Where NO like ' & EventNo & %'"
set rs6 = my_conn.Execute(SQL6)
Any thoughts?
SQL6 = "SELECT NO, LNAME, FNAME, MNAME, DOB"
SQL6 = SQL6 & " from COMP9.DBO.proc2"
SQL6 = SQL6 & " Where NO like '00010044%'"
set rs6 = my_conn.Execute(SQL6)
I'm using a query by having the user identify "EventNo". So:
Dim EventNo
and EventNo = ""
but I can't get EventNo to work with the same # of 00010044 in tho following select statement:
SQL6 = "SELECT NO, LNAME, FNAME, MNAME, DOB"
SQL6 = SQL6 & " from COMP9.DBO.proc2"
SQL6 = SQL6 & " Where NO like ' & EventNo & %'"
set rs6 = my_conn.Execute(SQL6)
Any thoughts?