I have this piece of code that doesn't work properly. The object of this code is to pick-up the comparison operator from the input text (1st two character, i.e <=) and use it as a variable in my SQL statement. The sql works ok with =
sign, but that's just about it.
dim compop as string
dim intBook as integer
compop = Mid$(srchCriteria, 1,2)
intBook = Val(Trim(Mid$(srchCriteria, 2, Len(srchCriteria))))
strCriteria = "Select * from " & dbCase & " where days_booked " & compop & "'" & intBook & "'"
Any help will be greatly appreciated.
sign, but that's just about it.
dim compop as string
dim intBook as integer
compop = Mid$(srchCriteria, 1,2)
intBook = Val(Trim(Mid$(srchCriteria, 2, Len(srchCriteria))))
strCriteria = "Select * from " & dbCase & " where days_booked " & compop & "'" & intBook & "'"
Any help will be greatly appreciated.