Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error 5 ???

Status
Not open for further replies.

prija

Programmer
Oct 17, 2002
28
0
0
YU
When I start my application, in some moment, after lost focus of some field, I got a "Error 5". I search to find what is this, but I can't find. What is "Error 5".Help me!
 
Error 5 is 'Invalid procedure call or argument'.

To get details or error messages you can type in the Immediate window:
[tt]
err.Raise 5
[/tt]
which will raise the error and show the error message. You can then click Help for more details

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
The most common cause of this in new code, is trying to set focus to a control that is invisible or disabled.
Often when you try to do it in a FORM_LOAD event.
 
Another cause is explicitly setting the focus to a control that already has it.

mmilan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top