HandsOn Writing the Form Activate Event Procedure

1. In the Visual Basic Editor window, double-click Form_Employees.

2. In the Code window there are a number of event procedures and functions already written for this form. Enter the following Form_Activate event procedure below the last procedure code.

Private Sub Form_Activate()

Me.TabCtl0.Pages(1).Visible = False End Sub

3. To test the above event procedure, activate the Employees form in Form view. Notice that only the tab labeled Company Info is shown.

4. Close the Employees form.

0 0

Post a comment