dulla
Technical User
- Feb 3, 2003
- 54
hello. i am trying to set focus on a field in another form after click an option. i have this code:
Private Sub Submit_Grant_AfterUpdate()
If Submit_Grant.Value = "-1" Then
Form_Grants.Grant_Name.SetFocus
End If
End Sub
and nothing happens. i've also tried:
Private Sub Submit_Grant_AfterUpdate()
If Submit_Grant.Value = "-1" Then
Forms![Grants].SetFocus
Forms![Grants]![Grant Name].SetFocus!
End If
End Sub
and i get: "cannot find form Grants" although the form is open. any ideas? thanks.
ameen
Private Sub Submit_Grant_AfterUpdate()
If Submit_Grant.Value = "-1" Then
Form_Grants.Grant_Name.SetFocus
End If
End Sub
and nothing happens. i've also tried:
Private Sub Submit_Grant_AfterUpdate()
If Submit_Grant.Value = "-1" Then
Forms![Grants].SetFocus
Forms![Grants]![Grant Name].SetFocus!
End If
End Sub
and i get: "cannot find form Grants" although the form is open. any ideas? thanks.
ameen