I am trying to code a custom dialog when "No Records Are Found" on a Find button.
This is the code I have so far -- I'm getting an error 91:
Function NoRecordsFound( )
On Error GoTo Error_Handler:
Dim rstFees As Recordset
rstFees.MoveLas t
If rstFees.RecordC ount = 0 Then
MsgBox "Sorry no records found."
End If
rstFees.Close
Exit Function
Error_Handler:
MsgBox Err.Description & Err.Number
End Function
==
Thanks!
amy
=
This is the code I have so far -- I'm getting an error 91:
Function NoRecordsFound( )
On Error GoTo Error_Handler:
Dim rstFees As Recordset
rstFees.MoveLas t
If rstFees.RecordC ount = 0 Then
MsgBox "Sorry no records found."
End If
rstFees.Close
Exit Function
Error_Handler:
MsgBox Err.Description & Err.Number
End Function
==
Thanks!
amy
=
Comment