I am getting a 3021 No record found error on some workstations. They are running Access 2013 runtime, though the database is coded in 2007.
It doesn't happen for all workstations running this runtime version. It doesn't happen for users with full access installed.
Private Sub ApplyNewFilter()
On Error GoTo errHandler
Select Case cboFilter.Value
Case "All"
Me.Filter = ""
Case "Active"
Me.Filter = "Status = ""Active"""
Case "Pending closure"
Me.Filter = "PendingClosure = True"
Case "High level"
Me.Filter = "Level_of_Inspection = ""High"""
Case "Medium level"
Me.Filter = "Level_of_Inspection = ""Medium"""
Case "Low level"
Me.Filter = "Level_of_Inspection = ""Low"""
Case "100% level"
Me.Filter = "Level_of_Inspection = ""100%"""
Case "Stock Code"
If Not IsNull(cboFiltCond.Value) Then
Me.Filter = "[Part_Number] = """ + cboFiltCond.Value + """"
Else
Me.Filter = "[Part_Number] is null"
End If
cboFiltCond.Visible = True
End Select
Me.FilterOn = Not cboFilter.Value = "All"
If Not cboFilter.Value = "Stock Code" Then
cboFilter.SetFocus
cboFiltCond.Visible = False
End If
GoTo endsub
errHandler:
MsgBox Err.Number & ": " & Err.Description, vbOKOnly, "Error : " & Err.Source
endsub:
End Sub
The error is happening somewhere in the Select Case loop
Any help much appreciated
regards
Simon