Link to home
Create AccountLog in
Microsoft Access

Microsoft Access

--

Questions

--

Followers

Top Experts

Avatar of one8solutions
one8solutions

Access 2010 Query Show only one instance
I am working with a client's membership DB and trying to get a list of members that belong to committees. The problem is that members can be on more than one committee. So my query returns the member name and address info for all the committees they belong to. Without creating a second query (which I did and works) I would like my query to return on one instance of the members name and address.

Design view of query
User generated image
Here's an example of the query returns
A has 2 record
B has 3 records
C has 1 record
User generated image
I want one of each

I've tried Totals/Group & First without getting the desired results

Thank you, I hope I've included all the info

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of jerryb30jerryb30🇺🇸

Are you wanting to show all committees, number of committees?

Avatar of jerryb30jerryb30🇺🇸

Select mbr#, LastName, FirstName, Address, City, Zip, State, count(cmtCode) from yourTable group by mbr#, LastName, FirstName, Address, City, Zip, State for the latter option.
Will need a bit of code to do the former.

Avatar of Jeffrey CoachmanJeffrey Coachman🇺🇸

Please post the *EXACT* results you are seeking

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of one8solutionsone8solutions

ASKER

I want one instance/row of A
One instance/row of B
One instance/row of C

I need to create envelopes/label from the query

Avatar of jerryb30jerryb30🇺🇸

So you do not care about committee? Or, mbr#?

Select  LastName, FirstName, Address, City, Zip, State from yourTable group by
 LastName, FirstName, Address, City, Zip, State

Please post the a clear graphical representation of the *EXACT* results you are seeking.
No need to describe anything...

Show us what you got
Show us what you want

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Here's a 2nd query that accomplishes what I want the first query to accomplish
User generated imageResults
User generated image
So i have one instance of each member and their address for printing envelopes

ASKER CERTIFIED SOLUTION
Avatar of jerryb30jerryb30🇺🇸

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account
Microsoft Access

Microsoft Access

--

Questions

--

Followers

Top Experts

Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.