I have a long code behind a command button. Now, when I try to run it I'll get an error tag which says that code is too long. How can i solve this problem? It isvery essential that all that code is behind this command button.
Sounds like you need to break your code up into separate functions/subroutines.
Like strongm says, there's a 64k limit on the amount of code you can have in a method. I don't know if it's 64k of characters, or 64k of interpreted code, but in either case, if you're anywhere near the limit, you need to refactor your code now!
Chip H.
____________________________________________________________________ If you want to get the best response to a question, please read FAQ222-2244 first
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.