This is somewhat of a continuation of an earlier post that was partially fixed by re-writing a module. But a problem still persists. A form with two subforms, one a sub of the other, and a combo box set up to search for a customer, consistently crashes on the second or third search. It will always do the first search just fine, and if I close the form and reopen, it will do another search without problem. There are no null link fields. It seems to go into a calculation loop but I think it is query related. The form is based on a table, the two subforms are based on queries. Dr. Watson recorded the following:
Win32 Kernel core component attempted to write to memory that does not exist or is read-only. It may be using an uninitialized variable, or it may be attempting to access memory after having freed it.
Module Name: KERNEL32.DLL
Description: Win32 Kernel core component
Version: 4.10.2222
Product: Microsoft® Windows® Operating System
Manufacturer: Microsoft Corporation
Application Name: Msaccess.exe
Description: Microsoft Access for Windows
Version: 9.0.3822
Product: Microsoft