>What sort of safety do you want?
>
>In general, if you see that you need to do the same thing over and over again, it seems a good idea to create a function or method, as you did here.
>
>If you use an object instead, you can save yourself the trouble of closing the table in code: the table is closed in the class'es Destroy() event.
Hilmar,
This is only true if the class has (or is) a private datasession (or if the class is part of a dataenvironment that closes the tables). Otherwise, the tables will stay open.
Steve Gibson