Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Database quick tip please... 1

Status
Not open for further replies.

PLV

Programmer
Apr 29, 2001
15
US
I need to know how to pinpoint if a database query has returned a NULL value.

I do a left join with 2 tables so it is possible that I have NULL values in one of my table fields.

I've tried to use NVL like this:
RFX_Text(pFX, _T("NVL([CPG], "REC_NULL")"), m_CPG);

It's not working...

I've looked on the IsFieldNULL function of the CRecordset and I cannot find a way to use it!

I only need to raise a flag if I found a NULL value.
If U could give me a little example it would be nice!!!

Thx Alot guys!!!

 
is it an SQL question? If so put it in other forums. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top