Barbara,
Sorry if I misunderstood your reply. To ensure that ALL tables are closed - in the Form UNLOAD of all forms using private datasessions I close all open tables by walking through the array created by AUSED. This ensures that there are no tables left open. However, so of the DS still refuse to close. A strange thing- if I open the form again it seems to be using the same DS again. I am not using any OCX's - everything is plain jane. Any classes that are created on the form manually are always set to .null. when their use is finished. What kind of dangling references are you referring to? PS - I am going on vacation tomorrow so I might not get back on this for several days.
A problem is a problem only as long as it has a possible solution. Lacking that, it becomes a FACT!