cyprus106
Programmer
- Apr 30, 2001
- 654
I've got this chunk of code that checks a table and looks for certain things. There's one more Column in the table, labled 'Type'. I only want to select the fields whose types are empty and don't contain characters, but when I say something along the lines of "...AND Type = ' '", "...AND Type = ''" or "...AND Type = NULL" they never select the fields in which Type is empty. In fact, when I add any of those 3 lines in, it doesn't select ANY records. I need to select the record where Type is empty but I don't know how to do it!!
set rsCars = Server.CreateObject("ADODB.Recordset"
strSQL = "SELECT * FROM CarList WHERE Model = '" & tempstr(1) & "' AND Years = '" & tempstr(0) & "'"
rsCars.Open strSQL, objConn
if Not rsCars.EOF then
'do some stuff
end if
Cyprus
set rsCars = Server.CreateObject("ADODB.Recordset"
strSQL = "SELECT * FROM CarList WHERE Model = '" & tempstr(1) & "' AND Years = '" & tempstr(0) & "'"
rsCars.Open strSQL, objConn
if Not rsCars.EOF then
'do some stuff
end if
Cyprus