TRAPPING A VARIABLE IN ALL SUBS IN ONE CALL
Posted on 2005-03-06
My program contains many subs,
I do trapping during record handling on sub-level like:
Status% = vBookList.Update
If Status% Then
Dum$ = "In update name," & vbCr & "in phonelist " & vbCr & "system did not update"
MsgBox msg, vbCritical, "Update errornr: " & Str$(Status%)
Now I write this in all databased subs,
Would there be a way to put in a sub or function, or on form-level something like:
"display the call and go back or to form or whatever is needed."
because in data sub will only be:
if status% then
call (the_thing_doing_this, err, status%,"Phonebook")