D
Doctor
I use this code below to open a form in dialog mode, make changes, and on
close requery the calling form and go to the record that I was on. I use this
book mark code all the time. But this time I am getting an error. My code and
the error are below.
The calling form is based on a query.
Thanks in advance.
Dim stDocName As String
Dim stLinkCriteria As String
Dim vBook As Variant
stDocName = "LLCRegistrations"
vBook = Me.Bookmark
stLinkCriteria = "[LLRegID]=" & Me![LLRegID]
DoCmd.OpenForm stDocName, , , stLinkCriteria, acFormEdit, acDialog
Me.Requery
If Not IsEmpty(vBook) Then
Me.Bookmark = vBook
End If
Error: 3159.
Not a valid bookmark.
close requery the calling form and go to the record that I was on. I use this
book mark code all the time. But this time I am getting an error. My code and
the error are below.
The calling form is based on a query.
Thanks in advance.
Dim stDocName As String
Dim stLinkCriteria As String
Dim vBook As Variant
stDocName = "LLCRegistrations"
vBook = Me.Bookmark
stLinkCriteria = "[LLRegID]=" & Me![LLRegID]
DoCmd.OpenForm stDocName, , , stLinkCriteria, acFormEdit, acDialog
Me.Requery
If Not IsEmpty(vBook) Then
Me.Bookmark = vBook
End If
Error: 3159.
Not a valid bookmark.