Rudi GOUSSEY
New Member
- Joined
- Jan 8, 2004
- Messages
- 32
Is it possible to use a variable in a method
Private Sub cmbFles_AfterUpdate()
txtItem.SetFocus
retvalItem.Value = "Bottle"
DoCmd.OpenForm "Failure Bottle"
End Sub
I would like to use an variable in code (just an example to illustrate) above as you see below, but this don't work. Maybe it is not possible
Private Sub cmbFles_AfterUpdate()
dim retval as string
retval = txtItem
retval.SetFocus
retval.Value = "Bottle"
DoCmd.OpenForm "Failure Bottle"
End Sub
Thx in advance for the help
Rudi
Private Sub cmbFles_AfterUpdate()
txtItem.SetFocus
retvalItem.Value = "Bottle"
DoCmd.OpenForm "Failure Bottle"
End Sub
I would like to use an variable in code (just an example to illustrate) above as you see below, but this don't work. Maybe it is not possible
Private Sub cmbFles_AfterUpdate()
dim retval as string
retval = txtItem
retval.SetFocus
retval.Value = "Bottle"
DoCmd.OpenForm "Failure Bottle"
End Sub
Thx in advance for the help
Rudi