Help with dynamically setting GROUP properties in REPORT

  • Thread starter Thread starter John Cosmas
  • Start date Start date
J

John Cosmas

I have a report that I've added a GROUP. The group level always stays the
same, but the field by which it is group may change. How would I do that in
code? Is there a GROUP0 property I can set and update the FIELD value like
I would do with CONTROLSOURCE for a TEXTBOX?

TIA
John
 
John,

Check out using VBA code in the "OnOpen" event of your report.

Using code you could check the value of some control on your form, then
using code you can change the contorlsource for the group.

I do not have any code handy that will do this, but check the help file and
then try writing the statement in the VBA window and you should be able to
get enough feedback to make it work.
 

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

Back
Top