Ashfaque
Search Beautiful Girls from your town for night
- Local time
- Today, 20:41
- Joined
- Sep 6, 2004
- Messages
- 897
My subform name is SF_DeptwizeEmps which is based on a simple query with 2 fields namely CNo, CName, CDept.
I placed this subform on my main form named F_SaPercent. This forms have different lables placed on it that displays department name like:
HR
Admin
...
....
In front of each label, I have placed check mark (CheckHR). What I want now which ever check mark I clicks, the subform should produce list of those department employees only.
If Me.CheckHR.Value = 0 Then
Forms!F_Sapercent!Forms!SF_DeptwizeEmps.Rowsorce = Forms!F_Sapercent!CheckHR
SF_DeptwizeEmps.Requery
End If
End Sub
And when I checkmark for another example Admin lable, then the subform list should produce empls of Admin dept only. I tried But not success
Can someone help me?
Thanks,
I placed this subform on my main form named F_SaPercent. This forms have different lables placed on it that displays department name like:
HR
Admin
...
....
In front of each label, I have placed check mark (CheckHR). What I want now which ever check mark I clicks, the subform should produce list of those department employees only.
If Me.CheckHR.Value = 0 Then
Forms!F_Sapercent!Forms!SF_DeptwizeEmps.Rowsorce = Forms!F_Sapercent!CheckHR
SF_DeptwizeEmps.Requery
End If
End Sub
And when I checkmark for another example Admin lable, then the subform list should produce empls of Admin dept only. I tried But not success
Can someone help me?
Thanks,