B
Bradley C. Hammerstrom
Access2000
Still working on getting this to work . . .
Let's suppose two forms have same underlying query and are already opened.
The user is viewing a record on the first form that he wants to view more
detail in the second form (frmMain), so the user clicks a command button
(cmdGoToMain), and the already open second form goes to the same record. I
can use the Visible property to make the forms show when I want to, I just
need the second form to go to the same record.
Here is what I have in mind:
****************
Private Sub cmdGoToMain_Click()
Dim strFormName As String
Dim intRecNumber As Integer
strFormName = "frmMain"
intRecNumber = Me.Bookmark
DoCmd.GoToRecord acDataForm, strFormName, acGoTo, intRecNumber
End Sub
***************
I'm getting a mismatch error because Bookmark is a string, not an integer,
but the offset argument needs a number.
How do I do this?
I hope this is clear.
Brad H
Still working on getting this to work . . .
Let's suppose two forms have same underlying query and are already opened.
The user is viewing a record on the first form that he wants to view more
detail in the second form (frmMain), so the user clicks a command button
(cmdGoToMain), and the already open second form goes to the same record. I
can use the Visible property to make the forms show when I want to, I just
need the second form to go to the same record.
Here is what I have in mind:
****************
Private Sub cmdGoToMain_Click()
Dim strFormName As String
Dim intRecNumber As Integer
strFormName = "frmMain"
intRecNumber = Me.Bookmark
DoCmd.GoToRecord acDataForm, strFormName, acGoTo, intRecNumber
End Sub
***************
I'm getting a mismatch error because Bookmark is a string, not an integer,
but the offset argument needs a number.
How do I do this?
I hope this is clear.
Brad H