return blanks in query result ...

G

Guest

In the source table for the query below, Ccy is a numeric field and there are
a number of blank fields. I want the query to return only records where Ccy
is empty(I have tried "Isempty" "IsNull" "IsMissing" and the the result is
always the same, no records. Ther query I have tried is

SELECT inclgs2.Ccount, inclgs2.Ccy, inclgs2.cLcy, inclgs2.cDate,
inclgs2.cTxn, inclgs2.cRef
FROM inclgs2
WHERE (((inclgs2.Ccy)=IsMissing([Ccy])));

Any suggestions
 
G

Guest

Try

SELECT inclgs2.Ccount, inclgs2.Ccy, inclgs2.cLcy, inclgs2.cDate,
inclgs2.cTxn, inclgs2.cRef
FROM inclgs2
WHERE inclgs2.Ccy Is Null

Or, if the Ccy field type is string it can be empty
SELECT inclgs2.Ccount, inclgs2.Ccy, inclgs2.cLcy, inclgs2.cDate,
inclgs2.cTxn, inclgs2.cRef
FROM inclgs2
WHERE Trim(inclgs2.Ccy) = "" Or inclgs2.Ccy Is Null
 
G

Guest

Thank you Ofer
--
thanks as always for the help


Ofer Cohen said:
Try

SELECT inclgs2.Ccount, inclgs2.Ccy, inclgs2.cLcy, inclgs2.cDate,
inclgs2.cTxn, inclgs2.cRef
FROM inclgs2
WHERE inclgs2.Ccy Is Null

Or, if the Ccy field type is string it can be empty
SELECT inclgs2.Ccount, inclgs2.Ccy, inclgs2.cLcy, inclgs2.cDate,
inclgs2.cTxn, inclgs2.cRef
FROM inclgs2
WHERE Trim(inclgs2.Ccy) = "" Or inclgs2.Ccy Is Null
--
Good Luck
BS"D


jer said:
In the source table for the query below, Ccy is a numeric field and there are
a number of blank fields. I want the query to return only records where Ccy
is empty(I have tried "Isempty" "IsNull" "IsMissing" and the the result is
always the same, no records. Ther query I have tried is

SELECT inclgs2.Ccount, inclgs2.Ccy, inclgs2.cLcy, inclgs2.cDate,
inclgs2.cTxn, inclgs2.cRef
FROM inclgs2
WHERE (((inclgs2.Ccy)=IsMissing([Ccy])));

Any suggestions
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top