I'm using VB6 with Service Pack 6 running on XP or Windows 2000 (problem occurs on both platforms). I'm attempting to write a program that runs fine in the IDE, however, when I compile it and try to run the .EXE file, I get a Runtime Error 5, Invalid Procedure Call or Argument. I've checked the program for a misprogrammed Mid$() statement and don't see anything amiss. Any ideas on what might be wrong or how I can trap this error? Is this a platform specific error or a problem with V.B. Serv. Pack 6? I need a solution as soon as possible because I've got several machines not working now because of this at the plant where I work.