using tab controls

  • Thread starter Thread starter Holly
  • Start date Start date
H

Holly

I have set up a form that asks for "employee type" and
based on the response, 1 of 5 different tabs on a tab
control receives the focus. I am using this to only show
certain information on the form based on the type of
employee they are.

The problem I am having is how to control the printing of
this information. What fields print on the report is
determined by what type of information is in the employee
type field and I can't figure out how to print certain
fields in the detail section of a report based on another
field. I do not want to create 5 different reports.

All of this information is stored in the same table.
 
Holly said:
I have set up a form that asks for "employee type" and
based on the response, 1 of 5 different tabs on a tab
control receives the focus. I am using this to only show
certain information on the form based on the type of
employee they are.

The problem I am having is how to control the printing of
this information. What fields print on the report is
determined by what type of information is in the employee
type field and I can't figure out how to print certain
fields in the detail section of a report based on another
field. I do not want to create 5 different reports.

All of this information is stored in the same table.

(Accidentally sent my reply first via e-mail. Sorry about that.)

As I understand the question, it's really about reports, not about tab
control. You can put code in the Format event of the report's Detail
section, or in the Format event of the Employee header section if the
report is grouped by employee, to make various controls visible or
invisible based on the employee type.
 
Back
Top