I spent over an hour on the Internet & MSDN looking for an answer that
worked for this problem. Lots of answers, none work. It's time to post a
question.
Using: VB6, ADO, MS Jet 4.0
How do you retrieve records (lines, rows...whatever ) using SQL, searching
for a specific field containing a "zero length string". I have tried every
combination of quotes (single and double) and "IsEmpty". Many syntax
combinations did not return an error, but none returned a row with the field
containg an empty string (nothing returned). I, of course, can return all
and sequentially search for this condition in my program. I'd rather not.
The basic syntax:
SQLstr = "SELECT PartNo, Description FROM Inventory WHERE Description = '' "
The above example contains 2 single quotes after the =
Thanks for any help.
Frank
worked for this problem. Lots of answers, none work. It's time to post a
question.
Using: VB6, ADO, MS Jet 4.0
How do you retrieve records (lines, rows...whatever ) using SQL, searching
for a specific field containing a "zero length string". I have tried every
combination of quotes (single and double) and "IsEmpty". Many syntax
combinations did not return an error, but none returned a row with the field
containg an empty string (nothing returned). I, of course, can return all
and sequentially search for this condition in my program. I'd rather not.
The basic syntax:
SQLstr = "SELECT PartNo, Description FROM Inventory WHERE Description = '' "
The above example contains 2 single quotes after the =
Thanks for any help.
Frank
Comment