Database Results

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I compare a field from a database. If the value is null the I don't want the field to display on the screen. Please help
 
GeoBash said:
How do I compare a field from a database. If the value is null the I
don't want the field to display on the screen. Please help

Numeric Field Queries

Using the Is Null comparison:
SELECT * FROM Categories WHERE (CategoryID IS NULL)

Using the Is Not Null comparison:
SELECT * FROM Categories WHERE (CategoryID IS NOT NULL)

Text Field Queries

Using the Is Null comparison:
SELECT * FROM Categories WHERE (CategoryName IS NULL)

Using the Is Not Null comparison:
SELECT * FROM Categories WHERE (CategoryName IS NOT NULL)

From: http://support.microsoft.com/default.aspx?scid=kb;[LN];306430
 

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

Back
Top