Searching a Table

W

Walt

Hi,

Can anyone tell me how I can create a form or query that will search a table
by keywords?

For example; if I wanted to retrieve data with the word access it but
someone else wanted to search on database.

Can I create a form or query that allow someone to input their keyword and
pull the info?

Thanks
 
G

Golfinray

Create a query from the table and in the query criteia that you want to
search type [enter you selection] That will give you a parameter query that
will ask the user for a keyword.
 
W

Walt

I created the query and put in [enter your selection] in the Criteria. The
parameter box pops up but when I enter a keyword it doesn't give me the data.
What am I doing wrong?

Golfinray said:
Create a query from the table and in the query criteia that you want to
search type [enter you selection] That will give you a parameter query that
will ask the user for a keyword.

Walt said:
Hi,

Can anyone tell me how I can create a form or query that will search a table
by keywords?

For example; if I wanted to retrieve data with the word access it but
someone else wanted to search on database.

Can I create a form or query that allow someone to input their keyword and
pull the info?

Thanks
 
J

John Spencer

If the word you are looking for could be anywhere in the field then you
need to use criteria like the following.

LIKE "*" & [Enter your selection] & "*"

If you typed Access in response to the prompt, that would return records
with Access anywhere in the field. So it would find
" the database access has "
"Accessing the database"
"Access"
etc.

'====================================================
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
'====================================================

I created the query and put in [enter your selection] in the Criteria. The
parameter box pops up but when I enter a keyword it doesn't give me the data.
What am I doing wrong?

Golfinray said:
Create a query from the table and in the query criteia that you want to
search type [enter you selection] That will give you a parameter query that
will ask the user for a keyword.

Walt said:
Hi,

Can anyone tell me how I can create a form or query that will search a table
by keywords?

For example; if I wanted to retrieve data with the word access it but
someone else wanted to search on database.

Can I create a form or query that allow someone to input their keyword and
pull the info?

Thanks
 
J

John W. Vinson

I created the query and put in [enter your selection] in the Criteria. The
parameter box pops up but when I enter a keyword it doesn't give me the data.
What am I doing wrong?

Please tell us the structure of your table and post the SQL view of the query.
We cannot tell what you are searching or how you're doing it.
 

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

Similar Threads

Searching for Records in a Report 1
Using Keywords to search 2
Help With MS Access 4
Searching for paper files 3
Search Form - Take 2 7
Help with searching 1
question boxes 2
Creating a 'word search' in a query 1

Top