i need some help to correct the below code.
Public Sub Check_Records()
Dim dbs As DAO.Database, qdfCurr As DAO.QueryDef, rst As DAO.Recordset, strSQL As String
Set dbs = CurrentDb
If QueryDefs("NAMEOFMYQRY").Recordset.RecordCount = 0 Then
MsgBox "There are no records to wiew.", vbQuestion, "Error"
End If
End Sub
Public Sub Check_Records()
Dim dbs As DAO.Database, qdfCurr As DAO.QueryDef, rst As DAO.Recordset, strSQL As String
Set dbs = CurrentDb
If QueryDefs("NAMEOFMYQRY").Recordset.RecordCount = 0 Then
MsgBox "There are no records to wiew.", vbQuestion, "Error"
End If
End Sub