A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

MS Access: How to group records/addresses by category/categories



 
 
Thread Tools Display Modes
  #1  
Old February 26th, 2005, 06:33 PM
wattog
external usenet poster
 
Posts: n/a
Default MS Access: How to group records/addresses by category/categories

I am new to Access (2002), and am reading up on it in two books. I have
also checked the online help, but can't find an answer to what I would think
would be a very basic question about categories or groups of records.

I plan to put together a MASTER address/contact list for use in a new job,
but I need to be able to group the individual records in multiple categories.
In other words, I will want to generate reports with all addresses in a
certain group, but some of the records/people from the master list will
appear in more than one group. It would be like having a master address
book, and wanting to "code" or designate a person as BOTH a business contact
and a friend contact. (Although in my case, it will coding/grouping contacts
for different committees and different events, with some individuals included
in not just one group, but several groups.

I can't figure out whether I need a different table for each group, or
whether I can code records in a table for multiple categories. If I do use
different tables for each group, how do I connect the same person who appears
in several groups, so that I will make changes to only one record that will
be reflected across all instances of that record in other tables.

I'm sorry if I am not explaining this very well!

If you have a book or online source that I need to read ... please let me
know.

Thanks!
  #2  
Old February 26th, 2005, 07:58 PM
John Vinson
external usenet poster
 
Posts: n/a
Default

On Sat, 26 Feb 2005 10:33:01 -0800, wattog
wrote:

I can't figure out whether I need a different table for each group, or
whether I can code records in a table for multiple categories. If I do use
different tables for each group, how do I connect the same person who appears
in several groups, so that I will make changes to only one record that will
be reflected across all instances of that record in other tables.


If you have a "many to many" relationship between Contacts and
Categories, the proper way to structure your tables is to have *three*
tables:

Contacts
ContactID Primary Key
FirstName
LastName
etc etc

Categories
Category Text Primary Key

ContactCategories
ContactID link to Contacts
Category link to Categories

Thus if a contact is in five categories, there would be five records
in ContactCategories for that contact; if you have 318 contacts in the
"Prospective Customer" category, there'd be 318 records in
ContactCategories, each with a different ContactID.

You could then create a Query joining Contacts to ContactCategories
with a criterion on Category to find all contacts in a particular
category.

John W. Vinson[MVP]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Encrypt AccesS File? milest General Discussion 2 February 9th, 2005 07:58 PM
object dependency doesn't work / apprear on the View pulldown menu WylieCoyote General Discussion 10 December 15th, 2004 08:45 AM
Images in a database Franz General Discussion 10 October 7th, 2004 09:35 AM
Useless Access 2003 tired, angry, sucidial and bored General Discussion 10 July 21st, 2004 11:52 PM
Access 2003 RK General Discussion 12 June 14th, 2004 10:16 AM


All times are GMT +1. The time now is 07:11 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.