L
Lynn
I have a main form with a subform. On the subform you can
click on a button to open a popup form. The RegItemID
from the subform is being passed as a OpenArgs to the
popup form. The problem is the popup form won't open to
the correct RegItemID.
Here is the code on Open Event of the popup form.
If Not IsNull(Me.OpenArgs) Then
Dim RS As New ADODB.Recordset
Set RS = Me.Recordset.Clone
RS.Find "[RegItemID] = " & Me.OpenArgs
If RS.EOF = False Then
Me.Bookmark = RS.Bookmark
End If
Set RS = Nothing
Right now the popup form opens up to the first record or
ReqItemID = 1
Thanks
click on a button to open a popup form. The RegItemID
from the subform is being passed as a OpenArgs to the
popup form. The problem is the popup form won't open to
the correct RegItemID.
Here is the code on Open Event of the popup form.
If Not IsNull(Me.OpenArgs) Then
Dim RS As New ADODB.Recordset
Set RS = Me.Recordset.Clone
RS.Find "[RegItemID] = " & Me.OpenArgs
If RS.EOF = False Then
Me.Bookmark = RS.Bookmark
End If
Set RS = Nothing
Right now the popup form opens up to the first record or
ReqItemID = 1
Thanks