Here is what I know, so far, about the .tmp files in the Local Settings\Temp folder.

When the IDE is launched, a file with the naming convention ~DFnnnn.tmp (where nnnn is a 4 digit hex number) is created. When I toggle from the code to the form, i.e. clicking the View Object button, a second tmp file is created. This would be the VBnn.tmp files mentioned earlier. FWIW, I noticed that nn incremented in each succeeding file created. VB2A.tmp, VB2B.tmp, etc. Both the ~DFnnnn.tmp and VBnn.tmp files are destroyed when the IDE is closed.

So, this explains why the app would sometimes run and sometimes fail when running in the IDE. It failed whenever I did a View Object. The only way to 'fix' the problem was to close and reopen the IDE. I still don't know the full purpose of the VBnn.tmp files.

Now, if I could just figure out this 372 error.