How to raise an error in Access97

  • Thread starter Thread starter Jonathan Scott via AccessMonster.com
  • Start date Start date
J

Jonathan Scott via AccessMonster.com

I would like to use error raising as a means to pass back a clue to the
caller that they handed me invalid data, or that I had some other kind of
problem in handling their request.

I must have the wrong book, because all it talks about is how to handle
errors, not how to create them. I have tried "Err.Raise(1, "SomeSource",
"This function is not implemented yet")", but Access97 certainly does not
like it no matter what I do with it.

Any good sites with information on how to use handling well enough to give
legitmacy to Access97?
 
Jonathan said:
I would like to use error raising as a means to pass back a clue to the
caller that they handed me invalid data, or that I had some other kind of
problem in handling their request.

I must have the wrong book, because all it talks about is how to handle
errors, not how to create them. I have tried "Err.Raise(1, "SomeSource",
"This function is not implemented yet")", but Access97 certainly does not
like it no matter what I do with it.

Any good sites with information on how to use handling well enough to give
legitmacy to Access97?


How about checking the methods in Help? In A97, it's pretty
good.

The Raise method is not a function, lose the parenthesis:
Err.Raise 1, "SomeSource","This function is not implemented
yet"
 
Back
Top