473,386 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Query criteria - limiting the records - question

LFM
I have a table called "employee profile" which contains a bunch of user
information. In that table I have a field called "Description" which is a
text/memo field. This field is not mandetory to be filled in, so in many
cases the field contains a null value.

I would like to create a query that lists all the records that do not
contain the word "employed" anywhere within the description field.

I tried putting NOT LIKE "employed" in the criteria for the field, but that
does not work.

I realize this value ends up in the WHERE clause of the sql statement, so
what do I put in to find the "WHERE NOT LIKE "employed" in any part of the
field, but that also still returns the null values if they exist.

Note: This task is in effort to clean data before importing into another
larger database.
Nov 13 '05 #1
1 1397
You were very close!

NOT LIKE "*" & "employed" & "*"

Returns all descriptions that contain the word 'employed' with anything
before the word and anything after the word.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"LFM" <no******@nothanks.com> wrote in message
news:19******************************@40tude.net.. .
I have a table called "employee profile" which contains a bunch of user
information. In that table I have a field called "Description" which is
a
text/memo field. This field is not mandetory to be filled in, so in many
cases the field contains a null value.

I would like to create a query that lists all the records that do not
contain the word "employed" anywhere within the description field.

I tried putting NOT LIKE "employed" in the criteria for the field, but
that
does not work.

I realize this value ends up in the WHERE clause of the sql statement, so
what do I put in to find the "WHERE NOT LIKE "employed" in any part of the
field, but that also still returns the null values if they exist.

Note: This task is in effort to clean data before importing into another
larger database.

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Guy Erez | last post by:
Hi, I'm running queries with MySql 4.0.17 that return thousands of records. Because I need to present them in GUI, I returieve the results in chunks using LIMIT, for example - get first 100,...
3
by: Steve | last post by:
Form FrmRestock's recordsource is QryFrmRestock. The TransactionDate field's criteria is set ats: Forms!FrmRestock!LastXDays. LastXDays on the form is a combobox where the selections are 30, 60...
1
by: Daniel Chartier | last post by:
Hello. I have a question concerning variable criteria for queries and reading forms. Let's say that I have a table with 2 fields and 10 records. One of the fields can have two different...
10
by: Kenneth | last post by:
I have a Query that consist of a lot of different sales data, and one of the colums are different date. The date goes from 1jan2003 til 31jan2003. in this Query I only want the salesdata for...
3
by: Josh Armstrong | last post by:
I have a option group(ogpLimiter) with 3 choices on my form(SearchMaster), "All"=3, "Expired"=2 and "Valid"=1. I would like to set it so that when the user selects one of the options it will...
6
by: Martin Lacoste | last post by:
Ok, before I headbutt the computer... don't know why when I add criteria in a query, I get an 'invalid procedure call'. I also don't know why after searching the help in access, the various access...
1
by: lorirobn | last post by:
Hi, I have a query that I have been using as a record source for a form with no problems. I just created a new "addnew" form, and added 20 records to the table with this form. The problem I...
6
by: jmarcrum | last post by:
Hi! I have created a Union Query in ACCESS 2003, that combines 130 records from one query (Extra Foreman Radios) and 250 records from another query (Forman Main Radios). I have created a...
7
by: DeZZar | last post by:
Hi all, Unfortunately I am quite a novice with Access!! I've created a number of data bases for my work however becuase my skills are limited to really built in functionality and wizards my...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.