This code comes out of an example in one of my books, of a combobox with ALL at the top of the drop-down list. SelectRecords refers to a public procedure. Can someone tell me what is wrong with the code? Please.
Code:
Private Sub cboActivityType_AfterUpdate()
On Error GoTo Error_Handler
SelectRecords
cboActivityType.Requery
Exit_Procedure:
On Error Resume Next
Exit Sub
Error_Handler:
MsgBox "An error has occurred in this application. " _
& "Please contact your technical support person " _
& "and tell them this information:" _
& vbCrLf & vbCrLf & "Error Number " & Err.Number & ", " &
'Something is incomplete at the end of the previous line
Err.Description , _
Buttons:=vbCritical, Title:="TestWorklog"
Resume Exit_Procedure
Resume
End Sub