' frmQuote.frm
Public Function Reposition(Direction As REPOSITION_TYPE, Optional iRecordNumber As Long) As Long
' Code omitted for brevity
' Add this line to save the last recordnumber to the
registry
SaveSetting App.Title, "Quote", "Last quote", TBL.RecordNumber
Exit Function
errHandler:
Dim nErrReturn As Long
nErrReturn = ErrorHandler(Error, Err, TBL.Filename, Me.Name & ".Reposition")
End Function |