A
AKphidelt
Hello all... im trying to get to my RecordSetClone of a form, so if someone
is looking for a certain record it can show up on this form without having to
do tons of Dlookups and stuff. I did a little research on RecordSetClone but
still can't get it to work... here is my current code
Sub rsc()
Dim rst As DAO.Recordset
Dim Response As String
Response = InputBox("Enter the Report Number")
Set rst = Forms![frmIncident].RecordsetClone
rst.FindFirst Response
If rst.NoMatch Then
MsgBox "NO entry found", vbInformation
Else
Forms![frmIncident].Bookmark = rst.Bookmark
End If
End Sub
I get the Runtime Error 3001 "Invalid Argument" on this line
rst.FindFirst Response
If anyone has any suggestions that would be awesome. Thanks a lot!
is looking for a certain record it can show up on this form without having to
do tons of Dlookups and stuff. I did a little research on RecordSetClone but
still can't get it to work... here is my current code
Sub rsc()
Dim rst As DAO.Recordset
Dim Response As String
Response = InputBox("Enter the Report Number")
Set rst = Forms![frmIncident].RecordsetClone
rst.FindFirst Response
If rst.NoMatch Then
MsgBox "NO entry found", vbInformation
Else
Forms![frmIncident].Bookmark = rst.Bookmark
End If
End Sub
I get the Runtime Error 3001 "Invalid Argument" on this line
rst.FindFirst Response
If anyone has any suggestions that would be awesome. Thanks a lot!