N
ND Pard
I have a small program that appends data to a table sorted by date.
Prior to appending, I store the record count to a variable via a recorset's
recordcount property.
At the end of the program, I open the sorted table and go to the record with
today's date, ie. the first record I added today with the following
statements:
DoCmd.OpenTable "Adj_Mstr", acViewNormal, acEdit
DoCmd.GoToRecord acTable, "Adj_Mstr", acGoTo, intRecCount
This takes me to the desired record.
How can I make that record the top record on the screen using VBA?
Right now it is generally the last or near the bottom of the screen. I do
not want to set a filter as I often scroll up too.
Your help will be appreciated. Thank you.
Prior to appending, I store the record count to a variable via a recorset's
recordcount property.
At the end of the program, I open the sorted table and go to the record with
today's date, ie. the first record I added today with the following
statements:
DoCmd.OpenTable "Adj_Mstr", acViewNormal, acEdit
DoCmd.GoToRecord acTable, "Adj_Mstr", acGoTo, intRecCount
This takes me to the desired record.
How can I make that record the top record on the screen using VBA?
Right now it is generally the last or near the bottom of the screen. I do
not want to set a filter as I often scroll up too.
Your help will be appreciated. Thank you.