I get a zero and a blank when I write err.number and err.description into my
error MsgBox.
If I write error$ I get a message with no number.
There wa a similar question posted on 11/21 and I tried the suggested
solution to no avail.
Thank you for your consideration.
Ofer - 07 Jan 2006 20:41 GMT
I'm not sure why the Err.Description doesn't work
I just use Err to get the number, and Error to get the description.

Signature
\\// Live Long and Prosper \\//
> I get a zero and a blank when I write err.number and err.description into my
> error MsgBox.
> If I write error$ I get a message with no number.
> There wa a similar question posted on 11/21 and I tried the suggested
> solution to no avail.
> Thank you for your consideration.
George R - 07 Jan 2006 22:00 GMT
Thanks, Ofer. That worked just fine.
> I'm not sure why the Err.Description doesn't work
> I just use Err to get the number, and Error to get the description.
[quoted text clipped - 5 lines]
> > solution to no avail.
> > Thank you for your consideration.
Dirk Goldgar - 07 Jan 2006 22:08 GMT
> I get a zero and a blank when I write err.number and err.description
> into my error MsgBox.
> If I write error$ I get a message with no number.
> There wa a similar question posted on 11/21 and I tried the suggested
> solution to no avail.
> Thank you for your consideration.
It sounds like you're accessing the Err object when there's no error, or
the original error has been cleared. Please post the relevant code.

Signature
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
david@epsomdotcomdotau - 07 Jan 2006 22:35 GMT
Normally you code like this:
Exit Sub
Catch:
MsgBox Err.Number & ": " & err.description
End Sub
If you accidentally loose the "Exit Sub" line you will get
the problem you are reporting.
(david)
> I get a zero and a blank when I write err.number and err.description into my
> error MsgBox.
> If I write error$ I get a message with no number.
> There wa a similar question posted on 11/21 and I tried the suggested
> solution to no avail.
> Thank you for your consideration.