Jamaluddin Jamal
Registered User.
- Local time
- Today, 18:01
- Joined
- Apr 15, 2017
- Messages
- 13
Hello everyone.
I am working on the form having Tab Control for different "Categories". The tab, say Category 1, contains 2 Combo Boxes cboType and cboID. by selecting Pay Type, cboID only shows all those record (or Emp ID) whose Pay Type is selected from cboType. I used the following VBA on OnChange event of cboType but its not working, however, its working if I but all controls directly on form instead of Tab Control:
Can anyone please help how to figure out this. File is attached for reference.
Thanks in Advance.
I am working on the form having Tab Control for different "Categories". The tab, say Category 1, contains 2 Combo Boxes cboType and cboID. by selecting Pay Type, cboID only shows all those record (or Emp ID) whose Pay Type is selected from cboType. I used the following VBA on OnChange event of cboType but its not working, however, its working if I but all controls directly on form instead of Tab Control:
Code:
Me.cboID.RowSourceType = "Table/Query"
Me.cboID.RowSource = "SELECT EmpID FROM tblEmp WHERE tblEmp.PayType = me.cboType"
Can anyone please help how to figure out this. File is attached for reference.
Thanks in Advance.
Attachments
Last edited: