I normally enter data using appropriate forms but from time to time I need to look at a particular record in the raw data (table). I use the following code behind a button in the calling form:
This is fine, except that the chosen record always shows up as the last record in the table window and I would prefer to be able to see the adjacent records as well. How can I use vba to scroll down and back up so that my chosen record is nearer to the vertical centre of the window?Code:Private Sub OpenPersonsTable_Click() ' opens DataPersons table for general edit strTblName = "DataPersons" idFilter = Me.BID 'BID is a form control with the target identity, as used in the primary key of the table DoCmd.OpenTable strTblName, acViewNormal, acEdit DoCmd.FindRecord (idFilter) End Sub
Note - Access 2003!
TIA