Hi,
I have a report which displays employee details and his/her training history. The training history report section is controlled by a subreport and is linked to the employee ID.
The employee report production (Print Preview) is controlled by a command button on the data entry form (frmEmployees) which looks at the employee id currently displayed to produce the training history report for that employee.
When a report is produced if the employee has no training history the report displays no data except for the headings on the main report.
I need help to display a msgbox when the report command button is clicked that states: "There is no training history available for John Smith"... rather than have an empty report displayed. The employee name (John Smith)will be taken from the data entry form text boxes (FirstName and LastName) for the selected employee displayed.
Mondoray
I have a report which displays employee details and his/her training history. The training history report section is controlled by a subreport and is linked to the employee ID.
The employee report production (Print Preview) is controlled by a command button on the data entry form (frmEmployees) which looks at the employee id currently displayed to produce the training history report for that employee.
When a report is produced if the employee has no training history the report displays no data except for the headings on the main report.
I need help to display a msgbox when the report command button is clicked that states: "There is no training history available for John Smith"... rather than have an empty report displayed. The employee name (John Smith)will be taken from the data entry form text boxes (FirstName and LastName) for the selected employee displayed.
Mondoray