Basic Access Question

B

ben

I have a database that stores information from a form. I
want to create some kind of report/form/query that will
only contain certain records depending on the data
contained in one of the columns. I am very new to access
and havent a clue as to what i need to do. I am using
Access2002 and would like to create several different sets
of data, again depending on the content of one column.
Please help.

Ben
 
J

John Vinson

I have a database that stores information from a form.

Just to clarify - it stores the information IN A TABLE, using the form
as a tool to put the data into the table. It's easy to make the
mistaken assumption that the Form is a data repository of some sort -
it's NOT.
I want to create some kind of report/form/query that will
only contain certain records depending on the data
contained in one of the columns. I am very new to access
and havent a clue as to what i need to do. I am using
Access2002 and would like to create several different sets
of data, again depending on the content of one column.

Create a Query based on your table. On the Criteria line under the
field that you want to use to select records, put the criterion that
selects the desired records. A couple of suggestions:

- Simplest is to just put the literal value. If you want to find all
records where the LastName field is "Jones", just type "Jones" on the
Criteria line. This is quick and easy but rather inflexible; you do
not want to end up with thousands of queries each with its own frozen
criterion!

- One step more flexible: use a Parameter Query by typing

= [Enter last name:]

on the Criteria line. When you open the query you'll get a popup box
prompting whatevery you type in the brackets, and Access will search
for whatever the user types.

- Better yet: create a small Form (let's call it frmCrit) with one or
more controls into which the user can type criteria. Use

=[Forms]![frmCrit]![nameofcontrol]

on the Criteria line.

In any of these cases, it's wise to create a Form (for onscreen
display) or a Report (for printing) based directly on this Query.
Don't make the common mistake of assuming that you need a new table in
order to generate a report - just use the Query.
 
D

Dan Artuso

Hi,
The usual would be a text or combo box.

--
HTH
Dan Artuso, MVP

"a problem well stated is a problem half solved"


K. Allen said:
Can a new party question the person supplying an answer?

I think a criteria form for supplying parameters to a
query sounds like it would be helpful. However, I don't
see what kind of control to put on the form.

Thanks in advance.

Ken
-----Original Message-----
I have a database that stores information from a form.

Just to clarify - it stores the information IN A TABLE, using the form
as a tool to put the data into the table. It's easy to make the
mistaken assumption that the Form is a data repository of some sort -
it's NOT.
I want to create some kind of report/form/query that will
only contain certain records depending on the data
contained in one of the columns. I am very new to access
and havent a clue as to what i need to do. I am using
Access2002 and would like to create several different sets
of data, again depending on the content of one column.

Create a Query based on your table. On the Criteria line under the
field that you want to use to select records, put the criterion that
selects the desired records. A couple of suggestions:

- Simplest is to just put the literal value. If you want to find all
records where the LastName field is "Jones", just type "Jones" on the
Criteria line. This is quick and easy but rather inflexible; you do
not want to end up with thousands of queries each with its own frozen
criterion!

- One step more flexible: use a Parameter Query by typing

= [Enter last name:]

on the Criteria line. When you open the query you'll get a popup box
prompting whatevery you type in the brackets, and Access will search
for whatever the user types.

- Better yet: create a small Form (let's call it frmCrit) with one or
more controls into which the user can type criteria. Use

=[Forms]![frmCrit]![nameofcontrol]

on the Criteria line.

In any of these cases, it's wise to create a Form (for onscreen
display) or a Report (for printing) based directly on this Query.
Don't make the common mistake of assuming that you need a new table in
order to generate a report - just use the Query.


.
 

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

Top