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 865371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:37:48+00:00 2026-05-15T09:37:48+00:00

I have a form ( not a report) in Access displayed in Continuous View

  • 0

I have a form (not a report) in Access displayed in Continuous View that has alot of repeat data. i.e. it looks like:

State Names
FL
Abe
FL
Bart
FL
Charlie
GA
Deleanor
GA
Mary

This needs to be interactive (there’s some command buttons on each row as well as in the form header), but there’s alot of repetitive data. Is there a way to add a group header by state? i.e. make it look like:

State Names
FL
Abe
Bart
Charlie
GA
Deleanor
Mary

  • 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-05-15T09:37:49+00:00Added an answer on May 15, 2026 at 9:37 am

    The closest I can get is to add a field to your form’s record source which numbers each row within a group. Then you could add a text box in the detail section of your form with this expression as its control source.

    =IIf(rank = 1, [State], “”]

    The text box would display the first occurrence of each state, and a zero length string otherwise.

    I tested with this query for the record source.

    SELECT
        m1.state,
        m1.names,
        (
            SELECT Count(names)
            FROM MyTable AS m2
            WHERE
                m2.state=m1.state
                AND m2.names<=m1.names
        ) AS rank
    FROM MyTable AS m1
    ORDER BY m1.state, m1.names;
    

    And it worked, but is not editable. If you need to be able to edit, try a query which uses DCount to generate the rank.

    SELECT
        m1.state,
        m1.names,
        DCount("names", "MyTable",
        "state ='" & state & "' AND " & "names <= '" & names & "'") AS rank
    FROM MyTable AS m1
    ORDER BY m1.state, m1.names;
    

    Both those queries give this result set with your sample data:

    state names     rank
    FL    Abe       1
    FL    Bart      2
    FL    Charlie   3
    GA    Deleanor  1
    GA    Mary      2
    

    Note, I assumed unique combinations of state and name.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form in C# that has a button that, when clicked, I
I have a namespaced controller for some admin functionality. My create form does not
I have an XML form with an element 0, which is well-formed but not
I have form area in my view. If I click button A , I
I have form that displays several keywords (standard set of choice lists that changes
I have a form like this: <form name=mine> <input type=text name=one> <input type=text name=two>
I have a form with some radio buttons that are disabled by default. When
We have 2 databases that should have matching tables. I have an (In-Production) report
I have an Access 2003 project in which all data is stored in SQL
I have subclassed Form to include some extra functionality, which boils down to a

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.