Re: SetFocus after IsLoaded returns true
- From: "SusanV" <svanallen@xxxxxxxxxxxxxxx>
- Date: Thu, 8 Jun 2006 11:02:48 -0400
Set the focus to a control on the form.
--
hth,
SusanV
"TIm Rush" <TImRush@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3F4DC5E9-C585-4422-8A3F-6A0D17081FDF@xxxxxxxxxxxxxxxx
After checking the form is loaded, I get an error trying to set the focus
to
the open form. (Runtime error 438, object doesnlt support this property or
method.) Debug brings me to the setfocus line.
Private Sub Return_Click()
If IsLoaded("pgMain") = True Then
Forms![pgMain].SetFocus
Else
DoCmd.OpenForm "pgMain", acNormal
End If
DoCmd.Close acForm, Me.Name
End Sub
.
- Prev by Date: Re: Validating ComboBox Entries
- Next by Date: Re: Access does not save some records...any ideas why?!
- Previous by thread: Re: How do I SAVE A FIELD in code
- Next by thread: Re: SetFocus after IsLoaded returns true
- Index(es):