Hi there,
I have a form (Competency Matrix) to rate a sales rep according to competencies with 5 combo boxes:
1. Team Leads Name
2. Rep Name
3. Belt
4. Competency
5. TLs Rating
My manager wants to automatically select Belt based on Tenure.
I have added tenure to the query builder and the following code for repname event after update:
It works as far as it selects New Hire Belt for everybody - even if tenure is 71, this shouldn't be Purple but I kept it simple to start with.
Could anyone give me advice as to where I have gone wrong?
I have a form (Competency Matrix) to rate a sales rep according to competencies with 5 combo boxes:
1. Team Leads Name
2. Rep Name
3. Belt
4. Competency
5. TLs Rating
My manager wants to automatically select Belt based on Tenure.
I have added tenure to the query builder and the following code for repname event after update:
Code:
Private Sub RepName_AfterUpdate()
If Tenure <= "6" Then
Me.Belt = "New Hire Belt"
ElseIf Tenure >= "6" Then
Me.Belt = "Purple"
End If
Forms("Training Done").Controls("Training").Requery
End Sub
Could anyone give me advice as to where I have gone wrong?
Comment