Sorry to re-post, I thought I had found the answer in a Microsoft article but it didn't solve the problem.

I am connecting to a Virtual Serial port using API's to communicate with an electronic device. Works fine.
I am connecting to a database using a recordset, reading a value then setting the recordset to Nothing.

When I load the next form I get 'Runtime error 7: Out of memory'
This is in spite of the forms doing nothing at all, except displaying.

This only happens when I create a .exe file. It runs fine from the VB Studio.
This is in spite of the forms doing nothing at all, except displaying.


Any idea's anyone?