Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Databases > Access   »   how to view single record of ALL people at single address?

 
Question Tools Search this Question Display Modes
Question
 
 
#1  
Old Nov 15, 2005, 03:59 PM
inquiring_canadian
New Member
inquiring_canadian is offline
 
Join Date: Nov 2005
Posts: 3
inquiring_canadian See this member's comment history on his/her Profile page.
how to view single record of ALL people at single address?

I have a table with addresses and names. I can easily sort it by address to see all the people living at the same address grouped together. However, this is problematic with mail-merges, since I wind up generating a new letter for each person, sending multiple mailings to the same residence.

Here is what the table looks like:

Name Address
===== ==========
Mary 101 Franklin Ave
John 101 Franklin Ave
Andrew 101 Franklin Ave
Matthew 101 Franklin Ave
Tim 2 Main St
Mark 2 Main St
Sam 2 Main St

Is there a way I can use a query combine all the names into a single "virtual" field, so that I only have one row for each address?

Here is what I would like to see:

Name Address
============= =================
Mary, John, Andrew, Matthew 101 Franklin Ave
Tim, Mark, Sam 2 Main St

Reply With Quote
 
     

Answers
 
 
Old Nov 15, 2005, 04:07 PM   #2  
CaptainForest
Finance & Accounting Expert
CaptainForest is offline
 
CaptainForest's Avatar
 
Join Date: Nov 2005
Location: Canada
Posts: 3,658
CaptainForest See this member's comment history on his/her Profile page.CaptainForest See this member's comment history on his/her Profile page.CaptainForest See this member's comment history on his/her Profile page.CaptainForest See this member's comment history on his/her Profile page.
are you using an Access Database or what?
  Reply With Quote
 
     
 
 
Old Nov 15, 2005, 04:27 PM   #3  
inquiring_canadian
New Member
inquiring_canadian is offline
 
Join Date: Nov 2005
Posts: 3
inquiring_canadian See this member's comment history on his/her Profile page.
Yes, I am using Access 2003.
  Reply With Quote
 
     
 
 
Old Nov 16, 2005, 04:41 AM   #4  
ScottGem
Computer Expert
ScottGem is offline
 
ScottGem's Avatar
 
Join Date: Jan 2003
Location: LI, NY - USA
Posts: 21,899
ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.
Pay to call ScottGem for advice ($.75/min)
Call ScottGem via Skype™
There is no way to do this with just a query. What you will need to do is loop thru a sorted recordset and concatenate the first names into a temporary table.

There is an issue of your database design. You should have at least 2 tables here; A table for households which has the address info and a table for household members which has the name info. That would make it easier.

I also found a possible solution for you here:

http://www.utteraccess.com/forums/sh...63&bodypre v=
  Reply With Quote
 
     
 
 
Old Nov 16, 2005, 03:39 PM   #5  
inquiring_canadian
New Member
inquiring_canadian is offline
 
Join Date: Nov 2005
Posts: 3
inquiring_canadian See this member's comment history on his/her Profile page.
This looks like a promising solution. However, I managed to accomplish my task using Update and Append queries. It is a little intimidating to me to use VB code.

Thanks for the help.
  Reply With Quote
 
     
 
 
Old Nov 17, 2005, 04:03 AM   #6  
ScottGem
Computer Expert
ScottGem is offline
 
ScottGem's Avatar
 
Join Date: Jan 2003
Location: LI, NY - USA
Posts: 21,899
ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.
Pay to call ScottGem for advice ($.75/min)
Call ScottGem via Skype™
VBA isn't that hard and you miss a great deal of the power of Access if you don't use it.

You should also spend time researching normalization rules. Normalization is an absolutely essential process for designing databases. Normalized databases are more efficient, easier to use and easier to enter data into. The rules of normalization have existed for over 30 years so they have stood the test of time as nothing as come along to replace them.
  Reply With Quote
 
     


Question Tools Search this Question
Search this Question:

Advanced Search
Display Modes

 
Similar Sponsors

Similar Questions
Question Asker Topic Answers Last Post
Single And Don't Love It Why? wrongful hurtings Relationships 7 Apr 26, 2006 05:36 AM
single mom concerned dad Family Law 13 Jan 25, 2006 04:08 AM
No Man-single Mary J Relationships 3 Jan 27, 2005 08:15 PM
Why am I still single??? linz_legrand Relationships 6 Sep 6, 2004 03:41 PM
Any single guys out there? Brittney Relationships 1 Dec 18, 2003 10:13 PM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 08:09 PM.

Content Relevant URLs by vBSEO 3.0.0 RC6 © 2006, Crawlability, Inc.