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
FLAbe
FLBart
FLCharlie
GADeleanor
GAMary
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
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.
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.
Both those queries give this result set with your sample data:
Note, I assumed unique combinations of state and name.