E
ericb
Hi,
The same problem again.
On the main ("MainF") form is a subform ("SubF") that displays a datasheet.
When displayed, I want the cursor to be set on the
first record of the datasheet. I hope I'm using the correct terms !
To do so, in the On Open event of the SubF I put the following line :
DoCmd.GoToRecord acDataForm, "SubF", acFirst
and got a message saying the form is not open yet.
I also tried me![SubF].setfocus but that did not do it either.
Would somebody have a suggestion on how to set the cursor on the first
record when I open the subform ?
Thank you.
The same problem again.
On the main ("MainF") form is a subform ("SubF") that displays a datasheet.
When displayed, I want the cursor to be set on the
first record of the datasheet. I hope I'm using the correct terms !
To do so, in the On Open event of the SubF I put the following line :
DoCmd.GoToRecord acDataForm, "SubF", acFirst
and got a message saying the form is not open yet.
I also tried me![SubF].setfocus but that did not do it either.
Would somebody have a suggestion on how to set the cursor on the first
record when I open the subform ?
Thank you.