Creating Reports (for Primary Key)

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

Guest

I currently maintain a database (Access 2000) of sales records, by customers'
names, purchased items, cost and etc. The primary key of the database is the
names of customers. I've normally done queries on the items, cost to generate
analysis of purchasers' trends. However, when I need to do a report on items
purchased by individual customer, I do not know of a faster way, except to
run query by individual names. Is there a faster and better way of doing so?
Thanks.
 
I currently maintain a database (Access 2000) of sales records, by customers'
names, purchased items, cost and etc. The primary key of the database is the
names of customers.

Ummm...

Not a good idea. A good Primary Key is unique, stable, and short;
people's names fail on all three counts. What if you had two customers
named Jim Smith? What if Janet Hopkins comes back after her wedding as
Janet Robertson?
I've normally done queries on the items, cost to generate
analysis of purchasers' trends. However, when I need to do a report on items
purchased by individual customer, I do not know of a faster way, except to
run query by individual names. Is there a faster and better way of doing so?
Thanks.

I don't understand the question. Of course you need a query by
individual names - you want to get an individual customer!

Are you using a Parameter Query? Consider creating a small unbound
Form, frmCrit let's say, with one combo box on it selecting the
customer names alphabetically (cboName). Your Query could use

=[Forms]![frmCrit]![cboName]

as a criterion to pull up just the records for that one person.

And... if you have ALL of this information in one table, your table
design really needs to be reconsidered!

John W. Vinson[MVP]
 

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