bogglebeats
Registered User.
- Local time
- Today, 23:52
- Joined
- Dec 19, 2002
- Messages
- 53
i am trying to setfocus from a subform to another form . i keep getting the message:
"cannot find the form 'Grants' referred to in a macro expression or visual basic code."
and i know that the form 'Grants' is open.
Since i am in a subform (Client Stages) i tried to setfocus in the main form first (Clients Information) and then to the desired form (grants)
Private Sub Submit_Grant_AfterUpdate()
If Submit_Grant.Value = "-1" Then
Forms![Clients Information].SetFocus
Forms!Grants.SetFocus
Forms!Grants![Grant Name].SetFocus
End If
End Sub
but still, i get the error message. any ideas??? thanks.
ameen
"cannot find the form 'Grants' referred to in a macro expression or visual basic code."
and i know that the form 'Grants' is open.
Since i am in a subform (Client Stages) i tried to setfocus in the main form first (Clients Information) and then to the desired form (grants)
Private Sub Submit_Grant_AfterUpdate()
If Submit_Grant.Value = "-1" Then
Forms![Clients Information].SetFocus
Forms!Grants.SetFocus
Forms!Grants![Grant Name].SetFocus
End If
End Sub
but still, i get the error message. any ideas??? thanks.
ameen