All
I have a form called frmMain.
This form contains a TabControl named tabMain
tabMain has some pages. One of the pages is called pagRecords
pagRecords contains a subform called frmRecords.
frmRecords contains records from an in-memory table.
My problem:
If I select tab pagRecords the cursor is set to the last record.
What I want: as soon I select tab pagRecords, the record cursor must always be set to the first record.
I think this can be done with next code.
However, I placed this line in a lot of event properties but it is never triggered (I put a break on the line).
So on which object and event should I put this line? (and is acActiveDataObject the right parameter?)
Regards
Ino
I have a form called frmMain.
This form contains a TabControl named tabMain
tabMain has some pages. One of the pages is called pagRecords
pagRecords contains a subform called frmRecords.
frmRecords contains records from an in-memory table.
My problem:
If I select tab pagRecords the cursor is set to the last record.
What I want: as soon I select tab pagRecords, the record cursor must always be set to the first record.
I think this can be done with next code.
Code:
DoCmd.GoToRecord acActiveDataObject, , acFirst
So on which object and event should I put this line? (and is acActiveDataObject the right parameter?)
Regards
Ino