G
Gordon Dale
I am trying to give a TextBox focus on opening a form but
if I use Forms!Detail!.Sequence No.SetFocus an error
message tels me that this type of property is not
available for this type of object. Yet HELP tells me that
to use SetFocus do this: SetFocus Method Example
The following example uses the SetFocus method to move
the focus to an EmployeeID text box on an Employees form:
"Forms!Employees!EmployeeID.SetFocus"
This is my attempt
Details is the Name of the SubForm opened with the command
stDocName = "Form 40 Register Supplier"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Forms!Detail!SequenceNo.SetFocus (Trying to give
TextBox SequenceNo the Focus here)
I would oblige if anyone can help
Regards
Gosher
if I use Forms!Detail!.Sequence No.SetFocus an error
message tels me that this type of property is not
available for this type of object. Yet HELP tells me that
to use SetFocus do this: SetFocus Method Example
The following example uses the SetFocus method to move
the focus to an EmployeeID text box on an Employees form:
"Forms!Employees!EmployeeID.SetFocus"
This is my attempt
Details is the Name of the SubForm opened with the command
stDocName = "Form 40 Register Supplier"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Forms!Detail!SequenceNo.SetFocus (Trying to give
TextBox SequenceNo the Focus here)
I would oblige if anyone can help
Regards
Gosher