Hi
I have an SQL statement which I need to tweak:
strSQL1 = “SELECT TEXT, NEW_HRS From DET WHERE EST_NO = 87359 AND NEW_HRS >0”
I have a textbox on a form (VB6 Form) which a user can enter his own number.
I want to replace 87359 with the contents of the textbox instead.
strSQL1 = “SELECT TEXT, NEW_HRS From DET WHERE EST_NO = TEXT1.Text AND NEW_HRS >0”
This doesn’t work!
Can someone help with the syntax?