I have several of these types of forms with subforms. When the form opens, most of the time the first record is highlighted. I do not know how to code to insure that this does not happen.
In the OnOpen event of the Main form I have code like below. Note that the subform does open at the first record but the Sendkeys seem to have no effect:
Forms![name of main form]![name of subform].Requery
DoCmd.GoToRecord, , acFirst
Sendkeys "{F2}"
Sendkeys "{HOME}"
If I could, I'd code so that no record in the subform could be fully selected (highlighted) but I also have not figured out this one either!
In the OnOpen event of the Main form I have code like below. Note that the subform does open at the first record but the Sendkeys seem to have no effect:
Forms![name of main form]![name of subform].Requery
DoCmd.GoToRecord, , acFirst
Sendkeys "{F2}"
Sendkeys "{HOME}"
If I could, I'd code so that no record in the subform could be fully selected (highlighted) but I also have not figured out this one either!