What is vbObjectError+1000?

  • Thread starter Thread starter Fred Boer
  • Start date Start date
F

Fred Boer

Hello!

Well, with a brave heart and a small bowl of cheezies, I set to work to
decipher some code downloaded from the Access Web. I didn't get very far,
though... Almost immediately I came upon these two lines:

Const cERR_USERCANCEL = vbObjectError + 1000
Const cERR_NOREMOTETABLE = vbObjectError + 2000

Ok, well I know they are user defined constants (uh, right?...). But what
the heck is "vbObjectError" and why are we adding numbers to it? Well, VB
help doesn't (of course, argh!), return anything for "vbObject Error", and I
tried looking in the language reference under Constants, and clicked on
"Visual Basic Constants", but didn't see it under the first 10 - 15 groups
of constants, and my cheezie bowl was empty, so could someone help?

Thanks!
Fred
 
Hello!

Ok, well, I tried again, more patiently, and I *did* end up finding
"vbObjectError" in the list of constants. I am curious, though... if your
custom error number has to be higher than vbObject Error (-2147221504), why
add 1000 and then 2000? Why not add 1 and 2? Or 10 and 20?

Fred
 
Back
Top