>How can I call a module (form-less) that creates its own private data session, opens/closes its own tables, and then closes its data session?
>
>I can see how to do this by creating a non-visible form, but how do I do it without using a form?
>
>
>Bob
Hi Bob:
I havent tried this, but you could use a formset that has no forms.
The problem is that you must add objects to the formset in order for the objects code to run in the private datasession. You can only AddObject() forms to a formset. You might be able to add properties to the formset and CREATEOBJECT() what you need.