G
Guest
I have a form with 4 fields: jobFunction, RACF, Intranet, and Other. The
first is a list box, the second is a text field, the third is a memo field,
and the fourth is a text field. What I want to do is, once a user selects a
record in the jobFunction field (a list box), I want to update the other
three fields based on that value. The data is coming straight from a table.
When a user selects the Branch Manager value in the jobFunction field, for
example, I want to update the other three fields with the data for the Branch
Manager record in the table from whence the data comes. Below is the code I
have tried in VBA, which doesn't work.
'Refresh RACF field after update of jobFunction field
Private Sub jobFunction_AfterUpdate()
Me![RACF] = DLookup("RACF", "standardProfiles", "Me.[jobFunction]='" &
[standardProfiles].[jobTitle] & "'")
End Sub
Thanks in advance for your help, and I hope all the American discussion
group members reading this post have a wonderful but safe Independence Day
weekend!
first is a list box, the second is a text field, the third is a memo field,
and the fourth is a text field. What I want to do is, once a user selects a
record in the jobFunction field (a list box), I want to update the other
three fields based on that value. The data is coming straight from a table.
When a user selects the Branch Manager value in the jobFunction field, for
example, I want to update the other three fields with the data for the Branch
Manager record in the table from whence the data comes. Below is the code I
have tried in VBA, which doesn't work.
'Refresh RACF field after update of jobFunction field
Private Sub jobFunction_AfterUpdate()
Me![RACF] = DLookup("RACF", "standardProfiles", "Me.[jobFunction]='" &
[standardProfiles].[jobTitle] & "'")
End Sub
Thanks in advance for your help, and I hope all the American discussion
group members reading this post have a wonderful but safe Independence Day
weekend!