Not Expression

  • Thread starter Thread starter David G. Hoch
  • Start date Start date
D

David G. Hoch

I feel a little silly asking such a simple question, but I've spent a lot of
time and have not come up with the right answer on my own.

I'm building a query in Access 2003. I have a field named "TCP/IP Address".
The field contains one of three types of data
1) A TCP/IP address (i.e. 192.168.1.1)
2) The letters "DHCP"
3) Left blank

My goal is to extract only those records that have a TCP/IP address.
I've gotten to the point where I can eliminate the blank records by using
the criteria <>""
Now I just need to find the correct syntax to tell Access to eliminate
anything that contains the letters "DHCP".

Can someone help an Access novice.

Thanks.
David
 
I feel a little silly asking such a simple question, but I've spent a lot of
time and have not come up with the right answer on my own.

I'm building a query in Access 2003. I have a field named "TCP/IP Address".
The field contains one of three types of data
1) A TCP/IP address (i.e. 192.168.1.1)
2) The letters "DHCP"
3) Left blank

My goal is to extract only those records that have a TCP/IP address.
I've gotten to the point where I can eliminate the blank records by using
the criteria <>""
Now I just need to find the correct syntax to tell Access to eliminate
anything that contains the letters "DHCP".

Can someone help an Access novice.

Thanks.
David

Where Tablename.[TCP/IP Address] Is Not Null Or Tablename.[TCP/IP
Address] Not Like "*DHCP*"
 

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