Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setfocus on another form

Status
Not open for further replies.

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top