No Subtotals when single records

M

Mervyn Thomas

Can anyone tell me how to hide the group footer when there is only one
record in the group. I still want the grand total to be correct?. I
suppose this will be an event macro but I don't know how to get started?
Mervyn
 
M

Marshall Barton

Mervyn said:
Can anyone tell me how to hide the group footer when there is only one
record in the group. I still want the grand total to be correct?. I
suppose this will be an event macro but I don't know how to get started?

Add an invisible text box the detail section. Name it
txtLineCount, set its control source to =1 and RunningSum to
Over Group.

That add a line of code to the group footer's Format event
procedure:

Me.GroupFooterXX.Visible = (txtLineCount > 1)
 
M

Mervyn Thomas

Thanks that worked fine!!
I've used VB in Excell but need to get some good starting point experience
in Access for more of this type of event - where can you learn this stuff?
Mervyn
 
M

Marshall Barton

Mervyn said:
Thanks that worked fine!!
I've used VB in Excell but need to get some good starting point experience
in Access for more of this type of event - where can you learn this stuff?

Well, there's lots of ways to learn this stuff, depending on
how want to go about it. Trial and error, reading Help,
reading books and taking courses are the usual alternatives.
As a long time software development professional, I tend
towards the first two, but others prefer the more structured
approach of a How To book or a classroom.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top