R
rdemyan via AccessMonster.com
My main app is split into a front end/back end. When my application, MainApp,
starts up, it creates a temporary back-end database. To create this
temporary back-end database it simply takes a "model" database and creates a
copy of it. This instance of the temporary back-end database is in the same
folder as the front end and is used by the user during that session. It is
used to store the results of very complex, time-consuming calculations so
that a user can then sort on these results virtually instantaneously.
The model temporary database is workgroup secured and has all permissions
revoked on the tables and in the main app I use RWOP queries to get at the
data. Creating this instance of the temp dB and linking to it from MainApp
works fine and I'm only presenting this here as background information.
I've recently include functionality in MainApp to import weather data. I
decided to make this a separate module, since the ftp parameters may have to
change in the future and I want to be able to just update this portion and
not my entire 170+ form/120+ linked table MainApp. ImportWeather App is
launched from MainApp by creating a shortcut (including workgroup, User ID,
PWD) and using the Shell command.
So in the ImportWeather App, I have code to link to a single table in the
instance of the temporary database. I use the exact same code that the main
app uses to link to the instance of the temporary database (except that I'm
only linking to one table instead of 20+)
However, I'm having permission problems with linking to this table in the
temporary database backend from the ImportWeather App.
The only way I can get this to work is if I use the owner/PWD of the
applications (all applications and backends have the same owner and all are
workgroup secured) to launch the ImportWeather App from the MainApp (using
the Shell command).
First of all, I don't know why this is the case since I'm using the code that
the Security FAQ recommends when a database has tables that have all
permissions revoked. All users have Run/Open DB permission on the model
temporary database, which by extension means that they should have it on the
instance of the temporary database.
The differences that I see:
1) The MainApp actually creates the instance of the temporary backend
database from the model temporary DB (the ImportWeather App does not). Does
this mean that the user who logged on to MainApp becomes the owner of the
instance of the temporary backend database. Not the model temporary DB, but
the instance of the temporary database for this session. Could this be the
problem?
2) When the ImportWeather App tries to link to the table in the instance of
the temporarary backend DB, this DB has already been created.
Even if you don't have an answer for me, I'd appreciate suggestions, things
to try. I've been working on this for 3 hours and can't get it to work
without using the Owner User ID and PWD.
Using the Owner User ID is not necessarily a problem because I only
distribute .mde files so I don't think I have to worry about clients
discovering my "super secret" Owner User ID. No, it's the PWD that's the
problem. It too could be protected by .mde, but what if I need to change it.
Thanks for any help.
starts up, it creates a temporary back-end database. To create this
temporary back-end database it simply takes a "model" database and creates a
copy of it. This instance of the temporary back-end database is in the same
folder as the front end and is used by the user during that session. It is
used to store the results of very complex, time-consuming calculations so
that a user can then sort on these results virtually instantaneously.
The model temporary database is workgroup secured and has all permissions
revoked on the tables and in the main app I use RWOP queries to get at the
data. Creating this instance of the temp dB and linking to it from MainApp
works fine and I'm only presenting this here as background information.
I've recently include functionality in MainApp to import weather data. I
decided to make this a separate module, since the ftp parameters may have to
change in the future and I want to be able to just update this portion and
not my entire 170+ form/120+ linked table MainApp. ImportWeather App is
launched from MainApp by creating a shortcut (including workgroup, User ID,
PWD) and using the Shell command.
So in the ImportWeather App, I have code to link to a single table in the
instance of the temporary database. I use the exact same code that the main
app uses to link to the instance of the temporary database (except that I'm
only linking to one table instead of 20+)
However, I'm having permission problems with linking to this table in the
temporary database backend from the ImportWeather App.
The only way I can get this to work is if I use the owner/PWD of the
applications (all applications and backends have the same owner and all are
workgroup secured) to launch the ImportWeather App from the MainApp (using
the Shell command).
First of all, I don't know why this is the case since I'm using the code that
the Security FAQ recommends when a database has tables that have all
permissions revoked. All users have Run/Open DB permission on the model
temporary database, which by extension means that they should have it on the
instance of the temporary database.
The differences that I see:
1) The MainApp actually creates the instance of the temporary backend
database from the model temporary DB (the ImportWeather App does not). Does
this mean that the user who logged on to MainApp becomes the owner of the
instance of the temporary backend database. Not the model temporary DB, but
the instance of the temporary database for this session. Could this be the
problem?
2) When the ImportWeather App tries to link to the table in the instance of
the temporarary backend DB, this DB has already been created.
Even if you don't have an answer for me, I'd appreciate suggestions, things
to try. I've been working on this for 3 hours and can't get it to work
without using the Owner User ID and PWD.
Using the Owner User ID is not necessarily a problem because I only
distribute .mde files so I don't think I have to worry about clients
discovering my "super secret" Owner User ID. No, it's the PWD that's the
problem. It too could be protected by .mde, but what if I need to change it.
Thanks for any help.