A
Anita
I have a data entry form with several embedded subforms. I am trying to
automatically move to a specific control on one of the subforms, but am
getting error 438 (object does not support this method).
What am I doing wrong?
strFormName is the name of the main parent form
frmLastUpdated is the name of one of the embedded subforms
EventDate is a control on the frmLastUpdated subform
Public Static Sub CreateLastUpdated(strFormName As String)
Forms(strFormName).Form.SetFocus
Forms(strFormName).Form!frmLast_Updated.SetFocus
Forms(strFormName)!frmLast_Updated.Form!EventDate.SetFocus
P.S. I am new to programming, and I keep getting stymied and stuck and hung
up for hours on syntax-type questions like this -- despite VBA for dummies
and online help. What's the best way to educate myself so I can code better
and faster?
automatically move to a specific control on one of the subforms, but am
getting error 438 (object does not support this method).
What am I doing wrong?
strFormName is the name of the main parent form
frmLastUpdated is the name of one of the embedded subforms
EventDate is a control on the frmLastUpdated subform
Public Static Sub CreateLastUpdated(strFormName As String)
Forms(strFormName).Form.SetFocus
Forms(strFormName).Form!frmLast_Updated.SetFocus
Forms(strFormName)!frmLast_Updated.Form!EventDate.SetFocus
P.S. I am new to programming, and I keep getting stymied and stuck and hung
up for hours on syntax-type questions like this -- despite VBA for dummies
and online help. What's the best way to educate myself so I can code better
and faster?