BullHalseyUSN
Technical User
Greetings experts!
I have a form that takes various pieces of information about employees.
The three pieces I am interested in are:
specialty - grade - name
E.G: GS (specialty) - 12 (grade) - Smith.
GS12 Smith
I am working on a form called FrmtblEmployee. This is based on tblEmployee. Both specialty, which is entered by a combo called RankOrRateCmb and grade, which is entered through Combo165, actually stored in the table as codes.
The actual names are stored in, in the former case a table tblRankorRate (let's say a code of 3 is defined in the table tblRankorRate as an 'MS') and grade is in tblRate.
I have the following:
Private Sub SocialSecurityNumber_AfterUpdate()
[SALUTATION]= [tblEmployees.Name] & " " & Me![RankorRateCmb] & " " & Me![Combo165]
Me.Refresh
End Sub
Because those Combos store values instead of terms I get, say:
3 4 Smith
Insted of GS12 Smith (3 corresponds to GS and 4 to 12 in my tables (why 4 = 12 would take a long explanation, but basically, some government positions have numbers some do not)
Can anyone brainstorm how I can get at the values in other tables, or if I can "teach" VBA which values correspond to which values?
Thanks! BH
I have a form that takes various pieces of information about employees.
The three pieces I am interested in are:
specialty - grade - name
E.G: GS (specialty) - 12 (grade) - Smith.
GS12 Smith
I am working on a form called FrmtblEmployee. This is based on tblEmployee. Both specialty, which is entered by a combo called RankOrRateCmb and grade, which is entered through Combo165, actually stored in the table as codes.
The actual names are stored in, in the former case a table tblRankorRate (let's say a code of 3 is defined in the table tblRankorRate as an 'MS') and grade is in tblRate.
I have the following:
Private Sub SocialSecurityNumber_AfterUpdate()
[SALUTATION]= [tblEmployees.Name] & " " & Me![RankorRateCmb] & " " & Me![Combo165]
Me.Refresh
End Sub
Because those Combos store values instead of terms I get, say:
3 4 Smith
Insted of GS12 Smith (3 corresponds to GS and 4 to 12 in my tables (why 4 = 12 would take a long explanation, but basically, some government positions have numbers some do not)
Can anyone brainstorm how I can get at the values in other tables, or if I can "teach" VBA which values correspond to which values?
Thanks! BH