Hi all
I'm a beginner in Recordsets so i have a problem with Recordsets!
When my application runs followed code,Run-Time Error '3070' occurs!
What is the problem?
Is there any wrong statement?
Thanks in advanced
I'm a beginner in Recordsets so i have a problem with Recordsets!
When my application runs followed code,Run-Time Error '3070' occurs!
What is the problem?
Is there any wrong statement?
Thanks in advanced
Code:
Sub findrecord_bypkgno()
Dim rst As DAO.Recordset
Dim strCriteria As String
strCriteria = "[Pack_no]= " & Me.searchpkg
Set rst = Me.RecordsetClone
rst.FindFirst (strCriteria) 'Run time error's yellow ribbon appear here
If rst.NoMatch Then
MsgBox "No entry found.", vbInformation
Else
Me.Bookmark = rst.Bookmark
End If
Set rst = Nothing
End Sub
Comment