Quote Originally Posted by sgrya1
Any tips on why, when I create an executable, I get a runtime error 5 when I try to run it?

It runs in the IDE fine.
Without lots of extra info, no.

I guess it's a matter of slowly disabling procedures one by one to work out where the error is occuring but it's painful generating an exe, running it, regenerating the exe, running it......
Nope.. just use decent Error Handling (see the article about it in our Classic VB FAQs for explanations & examples, etc.) which includes procedure/module names, and next time you will know which procedure has the error.

If you give your code line numbers (see the MZTools link in my signature, which is a tool that does it for you - among other things!) you can also find out the precise line too.