ZollerWagner
Technical User
Hi,
I'm creating an Access 2000 report that lists organizations, their contact info, and the services they provide. There are separate fields for each of the different categories of services.
Most of the organizations don't have services in every category, so I want to be able to print out a report that doesn't use space for fields that have no data. Is this possible?
This feels like overkill, but I created a separate Table for each separate category, related to the main table with the organizationID. Was that necessary?
Next I created a SubReport for a single category field using the Wizard. It works fine.
Then I've tried adding the following VBA Code to the Detail's OnPrint Event for the SubReport (was that the right place to put it?):
Me![my report name].Visible = Me![my report name].Report.HasData
I've been struggling with this for two days and still get errors. What am I doing wrong?
Which object name gets put in the code where I have "[my report name]"? How can I determine what the real object name is?
TIA for helping end my frustration. I'd really like to know the best way to approach this.
I'm creating an Access 2000 report that lists organizations, their contact info, and the services they provide. There are separate fields for each of the different categories of services.
Most of the organizations don't have services in every category, so I want to be able to print out a report that doesn't use space for fields that have no data. Is this possible?
This feels like overkill, but I created a separate Table for each separate category, related to the main table with the organizationID. Was that necessary?
Next I created a SubReport for a single category field using the Wizard. It works fine.
Then I've tried adding the following VBA Code to the Detail's OnPrint Event for the SubReport (was that the right place to put it?):
Me![my report name].Visible = Me![my report name].Report.HasData
I've been struggling with this for two days and still get errors. What am I doing wrong?
Which object name gets put in the code where I have "[my report name]"? How can I determine what the real object name is?
TIA for helping end my frustration. I'd really like to know the best way to approach this.