R
RD
Hi all,
Anyone know how to figure out *where* an error is being generated from?
I have a function that returns a string. The string will contain the user name
or "False" if the user name isn't in the table or "Empty" if the table doesn't
have any user names (I try to cover all my bases), or, if an error occurs, the
error number. Well, through some fat fingered coding I managed to generate a
runtime error. When I Err.Raise using that number and return it's description I
get "3061: Application-defined or object-defined error" but when I print the
original error to the debug window I get "3061: Too few parameters. Expected 1."
So, it's not from the VBA error object. Where is it coming from? Access? DAO?
There's gotta be a way to ID who is generating the error.
Eons ago I downloaded some code to make a table of VBA error codes and
descriptions and it's been helpful to me over the years. Anyone know of a
similar function to return AccessError and DAO error codes?
I fixed my botched code but I would like to return an accurate description of
runtime errors in the future.
Thanks for any help,
RD
Anyone know how to figure out *where* an error is being generated from?
I have a function that returns a string. The string will contain the user name
or "False" if the user name isn't in the table or "Empty" if the table doesn't
have any user names (I try to cover all my bases), or, if an error occurs, the
error number. Well, through some fat fingered coding I managed to generate a
runtime error. When I Err.Raise using that number and return it's description I
get "3061: Application-defined or object-defined error" but when I print the
original error to the debug window I get "3061: Too few parameters. Expected 1."
So, it's not from the VBA error object. Where is it coming from? Access? DAO?
There's gotta be a way to ID who is generating the error.
Eons ago I downloaded some code to make a table of VBA error codes and
descriptions and it's been helpful to me over the years. Anyone know of a
similar function to return AccessError and DAO error codes?
I fixed my botched code but I would like to return an accurate description of
runtime errors in the future.
Thanks for any help,
RD