M
Matthew
I have a multi select extended list box which acts to pass
criteria to a report called on the On Click of a Preview
command button.
For error handling, I have only On Error Resume Next -
which is ok but what I want is to On Error Goto
someErrLable and message that "There Are No Records for
this" and then abort/quit the report and return to my
Switchboard after the user presses OK. I have tried things
like :
On Error GoTo Print_Reports_Show_List_Err
' some print code
Print_Reports_Show_List_Exit:
Exit Function
Print_Reports_Show_List_Err:
MsgBox Error "There Are No Records For This Category"
Resume Print_Reports_Show_List_Exit
But that doesn't do what I want; I have trued Cancel Event
and Quit - but still can't quite get it.
Thanks
Matthew
criteria to a report called on the On Click of a Preview
command button.
For error handling, I have only On Error Resume Next -
which is ok but what I want is to On Error Goto
someErrLable and message that "There Are No Records for
this" and then abort/quit the report and return to my
Switchboard after the user presses OK. I have tried things
like :
On Error GoTo Print_Reports_Show_List_Err
' some print code
Print_Reports_Show_List_Exit:
Exit Function
Print_Reports_Show_List_Err:
MsgBox Error "There Are No Records For This Category"
Resume Print_Reports_Show_List_Exit
But that doesn't do what I want; I have trued Cancel Event
and Quit - but still can't quite get it.
Thanks
Matthew