T
Tom Gunderson
I have a secured application, split fe/be, backend is an Access mdb.
In several UN-secured databases, I run code at startup to test the linked
tables in the front end. This code is from "Total Access Sourcebook " by
FMS (great utility for code and examples), and returns a simple true/false.
The code requires the user to at least "read-design" permissions on the
linked table, as it runs the following line, checking for an error or not:
varTmp = tdfTmp.Fields(0).Name
Anyway, in my secured app, I'm only distributing a "deploy only" mdw, which
includes a 'remote site administrator' (see the Access Security FAQ); so
neither my users, nor the 'remote site admin' have any read design
permissions, thus this test always fails.
So.... Any ideas on how to test that my linked tables are valid?
For the time being, I've implemented a check where I try to create a
recordset from one of the linked tables, if it fails with an error# 3023
(Couldn't find file 'c:.......') then I offer up the form to allow the user
to find and re-link to the backend. It works, but is this the best way?
Any ideas appreciated! Thanks!
In several UN-secured databases, I run code at startup to test the linked
tables in the front end. This code is from "Total Access Sourcebook " by
FMS (great utility for code and examples), and returns a simple true/false.
The code requires the user to at least "read-design" permissions on the
linked table, as it runs the following line, checking for an error or not:
varTmp = tdfTmp.Fields(0).Name
Anyway, in my secured app, I'm only distributing a "deploy only" mdw, which
includes a 'remote site administrator' (see the Access Security FAQ); so
neither my users, nor the 'remote site admin' have any read design
permissions, thus this test always fails.
So.... Any ideas on how to test that my linked tables are valid?
For the time being, I've implemented a check where I try to create a
recordset from one of the linked tables, if it fails with an error# 3023
(Couldn't find file 'c:.......') then I offer up the form to allow the user
to find and re-link to the backend. It works, but is this the best way?
Any ideas appreciated! Thanks!