cardgunner
Registered User.
- Local time
- Today, 10:16
- Joined
- Aug 8, 2005
- Messages
- 210
After the user selects and enters one value I want the values for two other fields set.
If I run these they seperately they both work
What do I need to do to tie the two together? Where they select the action id and it sets the actionname and the noofdays.
If I run these they seperately they both work
Code:
Private Sub actionid_AfterUpdate()
Me.Action.Value = DLookup("[actionname]", "actiontbl", "[actionid] = Forms![cstfrm]!commentfrm.form!actionid")
End Sub
Private Sub actionid_AfterUpdate()
Me.actionnumber.Value = DLookup("[noofdays]", "actiontbl", "[actionid] = Forms![cstfrm]!commentfrm.form!actionid")
End Sub
What do I need to do to tie the two together? Where they select the action id and it sets the actionname and the noofdays.