- Local time
- Today, 02:22
- Joined
- Jul 9, 2003
- Messages
- 17,449
Runtime error 2467
Application-defined or object-defined error
This old friend was back, I was convinced that the computer had a virus! I was convinced that it wasn't me, there was something wrong with the software. After faffing around for about 2 hours it suddenly dawned on me, I was closing the form that the code linked to, causing the error.
In my experience, unusual choice of words here “experience”, this doesn't allude to experience, it alludes to stupidity! Still I do have some excuses, I've got a cold, man flu, so I suppose that accounts for some of the user error.
Yes I know, I admit it, I cocked up, I wasted 2 hours trying to sort out a problem I created myself! Totally convinced that there was something wrong with the computer, not me, I could not make a mistake! That's why I'm writing this, if you're reading this, no it's not your computer generating the error, no it's not your code, your codes working fine.
It's just that you're calling it from the wrong place or you're closing something down with it. What you've probably done is move code from a command button to the on Close event of a form. That's what I did, well not quite as simple as that, I needed a form to test some software and I happen to have a start-up form to hand, and the on Close event of the Startup form opened the next form.
This is what I have been using quite happily in my code, then I decided to add a text box to the Startup form, I decided to pass a reference to that textbox through my code.
Then I close that form.
Yes I know, you should have seen that coming, but no, 2 hours, 2 long frustrating hours, 2 hours of my life wasted because I'm an idiot.
So I'll say it again, no it's not 99%, it's 100%, yes, 100% "It's something you've done!" It's not a virus, it's user error. Yes you are an idiot just like me. Join the club!
F*** it let's go and have a beer!
Application-defined or object-defined error
This old friend was back, I was convinced that the computer had a virus! I was convinced that it wasn't me, there was something wrong with the software. After faffing around for about 2 hours it suddenly dawned on me, I was closing the form that the code linked to, causing the error.
In my experience, unusual choice of words here “experience”, this doesn't allude to experience, it alludes to stupidity! Still I do have some excuses, I've got a cold, man flu, so I suppose that accounts for some of the user error.
Yes I know, I admit it, I cocked up, I wasted 2 hours trying to sort out a problem I created myself! Totally convinced that there was something wrong with the computer, not me, I could not make a mistake! That's why I'm writing this, if you're reading this, no it's not your computer generating the error, no it's not your code, your codes working fine.
It's just that you're calling it from the wrong place or you're closing something down with it. What you've probably done is move code from a command button to the on Close event of a form. That's what I did, well not quite as simple as that, I needed a form to test some software and I happen to have a start-up form to hand, and the on Close event of the Startup form opened the next form.
This is what I have been using quite happily in my code, then I decided to add a text box to the Startup form, I decided to pass a reference to that textbox through my code.
Then I close that form.
Yes I know, you should have seen that coming, but no, 2 hours, 2 long frustrating hours, 2 hours of my life wasted because I'm an idiot.
So I'll say it again, no it's not 99%, it's 100%, yes, 100% "It's something you've done!" It's not a virus, it's user error. Yes you are an idiot just like me. Join the club!
F*** it let's go and have a beer!
Last edited: