> > 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 :) **
He can't open with Excel.
PS: Found this thread while struggling with my Impersonate problem.
This approach works if I could trust users do not know VFP, do not have VFP and/or cannot hack/delete DBC.
Too easy to overcome:(
Cetin Basoz