Hi Robert,
Simply create a DE class, add the tables/views in it and simply issue
oDataEnv = CREATEOBJECT('NewClassName')
You should be able to acces the tables/views in it now. Remember that if you create this class from a method of an object then it will only be available to that method.
>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