Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Run-time error '2465':
Microsoft Office Access can't find the field '|' referred to in your expression.
Private Sub frmFilterSearch_Click()
'put in your error checking
DoCmd.OpenForm "frmFilterSearch", , , , , acDialog
'code stops here until search form closed/hidden
If CurrentProject.AllForms("frmFilterSearch").IsLoaded Then
[COLOR=green]'this section of code is highlighted when the 'Go To Selected Tool' button is clicked in the filter form[/color]
[COLOR=red]Me.Filter = Forms("frmFilterSearch").getFilter[/color]
If Not Me.Filter = "" Then
[COLOR=green]'this section of code is highlighted when the Apply Filter button is clicked in the filter form[/color]
[COLOR=red]Me.FilterOn = True [/color]
End If
If Me.Recordset.RecordCount = 0 Then
MsgBox "No Records Found"
Me.Filter = ""
Me.FilterOn = False
Else
MsgBox Me.Recordset.RecordCount & " Tools found meeting the Filter."
End If
DoCmd.Close acForm, "frmFilterSearch"
End If
End Sub
Private Sub LastRecord_Click()
On Error GoTo Err_LastRecord_Click
DoCmd.GoToRecord , , acLast
Exit_LastRecord_Click:
Exit Sub
Err_LastRecord_Click:
MsgBox Err.Description
Resume Exit_LastRecord_Click
End Sub
Private Sub moveToRecord(lngRecord as long)
On Error GoTo Err_Record
DoCmd.GoToRecord , , lngRecord
Exit Sub
Err_Record:
MsgBox Err.Description
End Sub