G
Guest
Hello,
I try to search a record then passing case number to another form using
openargs but some how it is not passing ? Here piece of my code:
On the SEARCH FORM onclick event I code:
DoCmd.OpenForm "FrmEdit", , , , , , Me.CaseNoBox
On the "FrmEdit" Open Event I code:
If Not IsNull(Me.OpenArgs) Then
Dim Casenum As String
Casenum = Me.OpenArgs
Dim RS As Recordset
Set RS = Me.RecordsetClone
RS.FindFirst "Caseno = '" & Casenum & "'"
If Not RS.NoMatch Then
Me.Bookmark = RS.Bookmark
End If
End If
But the value is NULL, Please help!
MN
I try to search a record then passing case number to another form using
openargs but some how it is not passing ? Here piece of my code:
On the SEARCH FORM onclick event I code:
DoCmd.OpenForm "FrmEdit", , , , , , Me.CaseNoBox
On the "FrmEdit" Open Event I code:
If Not IsNull(Me.OpenArgs) Then
Dim Casenum As String
Casenum = Me.OpenArgs
Dim RS As Recordset
Set RS = Me.RecordsetClone
RS.FindFirst "Caseno = '" & Casenum & "'"
If Not RS.NoMatch Then
Me.Bookmark = RS.Bookmark
End If
End If
But the value is NULL, Please help!
MN