Hey gang!
I an trying my luck with a tab control within a form.
I only have 2 tables, 2 queries, and 1 form.
The 2 tables tblEmployees, and tblContractors are almost exact.
The 2 queries qryEmployees, and qryContractors are also similar.
The form frmPersonnel has a tab control, with 2 tabs. The first tab is named tabEmployees, and the second tab is named tabContractors.....(see where I'm going with this?)
Is there any way possible I can get the records from the Employees on the tabEmployees, and the records from the Contractors on tabContractors??
I have tried searching the good ole google search machine and have found a few things that I have unsuccessfully tried.
I've read that the record source of all the tabs is the record source of the form itself and that you could not assign a different record source for each tab.
I tried the on click event for each tab utilizing these sub-routines, and have tried it several different ways but no matter what I try, I cannot make it work.....
Is this not possible utilizing a tab control? (not wanting to use sub-form)
Cheers!
-Kyp
I an trying my luck with a tab control within a form.
I only have 2 tables, 2 queries, and 1 form.
The 2 tables tblEmployees, and tblContractors are almost exact.
The 2 queries qryEmployees, and qryContractors are also similar.
The form frmPersonnel has a tab control, with 2 tabs. The first tab is named tabEmployees, and the second tab is named tabContractors.....(see where I'm going with this?)
Is there any way possible I can get the records from the Employees on the tabEmployees, and the records from the Contractors on tabContractors??
I have tried searching the good ole google search machine and have found a few things that I have unsuccessfully tried.
I've read that the record source of all the tabs is the record source of the form itself and that you could not assign a different record source for each tab.
I tried the on click event for each tab utilizing these sub-routines, and have tried it several different ways but no matter what I try, I cannot make it work.....
Is this not possible utilizing a tab control? (not wanting to use sub-form)
Code:
Option Compare Database
Option Explicit
Private Sub tabContractors_Click()
Form!frmPersonnel.RecordSource = "qryContractors"
End Sub
Private Sub tabEmployees_Click()
Form!frmPersonnel.RecordSource = "qryEmployees"
End Sub
Cheers!
-Kyp