Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8787449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:53:42+00:00 2026-06-13T21:53:42+00:00

I have a contacts database in Microsoft Access with all of the data in

  • 0

I have a contacts database in Microsoft Access with all of the data in one table. I’m trying to create a report that groups the users by ‘status’ and I’m having trouble trying to determine how to do this.

Each contact has two fields, Status 1 and Status 2. Status 1 can be null, A or B and Status 2 can be either true or false.

The report should group them something like this:

Status 1 Null
    Contact name and details (repeated for every contact with this status)
Status 1 A
    Contact name and details (repeated for every contact with this status)
Status 1 B
    Contact name and details (repeated for every contact with this status)
Status 2 True
    Contact name and details (repeated for every contact with this status)

There is going to be some overlap with these statuses as some records match more than one status, but that’s fine. Showing duplicates on this page is perfectly acceptable.

If this were a web app, I would simply write 4 queries and loops through the resulting record set, displaying the results under each appropriate header. But in an Access report I cannot figure out what to do.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T21:53:44+00:00Added an answer on June 13, 2026 at 9:53 pm

    You might consider basing your report in a UNION query:

    SELECT 1 As SortOrder, Contact, Details, Status1, Status2 FROM ContactsTable 
    WHERE Status1 Is Null 
    UNION ALL
    SELECT 2 As SortOrder, Contact, Details, Status1, Status2 FROM ContactsTable 
    WHERE Status1 = "A"
    UNION ALL
    SELECT 3 As SortOrder, Contact, Details, Status1, Status2 FROM ContactsTable 
    WHERE Status1 = "B"
    UNION ALL
    SELECT 4 As SortOrder, Contact, Details, Status1, Status2 FROM ContactsTable 
    WHERE Status2 = True
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database named contacts.db with a table named TABLE_NAME that has one
We have an SQL contacts database that links into all our project information with
I have a table contacts that has a field arrayOfMembers (JSON format) and a
I have contacts stored in a mySQL database, is it possible to create an
In database I have Contacts table: ContactID (int) FirstName (varchar) LastName (varchar) ... XmlFields
I'm trying to send an email merging one document (.docx) with a contacts database
I am trying to have name of contacts in one array and their types
I have created a database emailDatabase , its stored in C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA
I have a SQL database containging a Contants table containing people contacts records. Im
I have another Microsoft Access question: I am building a contact database, and some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.