> If your table is in a database container you can add some code in the after open tables.
>
> Something like this.
>
>
> PROCEDURE dbc_AfterOpenTable(cTableName)
> if not program() = ... or some other kind of validation code here.
> use in select(cTablename)
> endif
>
> *After a table or view is opened.
>
> ENDPROC
>
>
Kip
And if the user uses, say Excel, to open the table, what then happens to your DBC code?
Bernard
** If you see someone without a smile, give em one of yours :) **