Link to home
Start Free TrialLog in
Avatar of HTorres
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?
ASKER CERTIFIED SOLUTION
Avatar of a111a111a111
a111a111a111

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of a111a111a111
a111a111a111

"Select all * from table  WHERE cuenta = null and costo > '1000'"

Avatar of HTorres

ASKER

perfect!

Avatar of HTorres

ASKER

i was using vbnull instead of null

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