Don't Understand "Public" Variables

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am confused about the meaning of "Public" variable. My main report
declares "Public strStaffGrp As String" at the top of the module. My
subreport needs to compare strStaffGrp to a Detail field during formatting,
but I can't see strStaffGrp at that point. But the footer of the same
subreport, during printing, is able to change the content of an unbound field
according to the content of strStaffGrp -- i.e., the footer can see
strStaffGrp during printing.

What am I missing and how do I use strStaffGrp during Detail formatting?

Thanks.
 
Show the code for both cases. Also, which event of the Report embedded in
the Subreport Control are you using in the case where it isn't working?

Larry Linson
Microsoft Access MVP
 
Back
Top