G
Guest
I have a button that copies the data from a number of tables and creates a
new record.
I want to go back to the original record after a requery, which re-sorts my
form.
Initally I used the current record but that did not always work:
Dim CurrentRecordNo As Long
CurrentRecordNo = Me.CurrentRecord
Call CopyTables
Me.Requery
'DoCmd.GoToRecord acDataForm, Me.Name, acGoTo, CurrentRecordNo
Next I tried using a bookmark but that did not work either:
Dim strBook As String
strBook = Me.Bookmark
Call CopyTables
Me.Requery
Me.Bookmark = strBook
Any help would be appreciated.
new record.
I want to go back to the original record after a requery, which re-sorts my
form.
Initally I used the current record but that did not always work:
Dim CurrentRecordNo As Long
CurrentRecordNo = Me.CurrentRecord
Call CopyTables
Me.Requery
'DoCmd.GoToRecord acDataForm, Me.Name, acGoTo, CurrentRecordNo
Next I tried using a bookmark but that did not work either:
Dim strBook As String
strBook = Me.Bookmark
Call CopyTables
Me.Requery
Me.Bookmark = strBook
Any help would be appreciated.