HTorres
asked on
sql query in vb5 enterprise sp3
i have a 5mb DBF and i like to make an sql query to select all the records that have a cost bigger than 1000 and the shipment description is in blank.
i have something like this but it's not working...
"Select all * from table WHERE cuenta ='' and costo > 0"
in concrete:
how do i make a query to select records with an empty string?
i have something like this but it's not working...
"Select all * from table WHERE cuenta ='' and costo > 0"
in concrete:
how do i make a query to select records with an empty string?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
"Select all * from table WHERE cuenta = null and costo > '1000'"
ASKER
perfect!
ASKER
i was using vbnull instead of null
nice!
nice!
I am glad I can help.
If you have Questions in the future you can ask at shayplace@hotmail.com and I can post some of them on http://www.hili.com/~shay/link/vbcoerner.htm
If you have Questions in the future you can ask at shayplace@hotmail.com and I can post some of them on http://www.hili.com/~shay/link/vbcoerner.htm