kevin said:
I'm actually trying to do the opposite - I need to password protect a back end but can't figure out the VB to then make this accessible from the FE, i.e. the connection string stuff - always managed to duck using connection strings so far! Can anyone help with a sample please?
EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com
There are many examples of connection strings in the newsgroups.
Search for: connection string database password
in comp.databases.ms-access or in microsoft.public.access
Be sure to consider the possibility of using the MSysConf table.
From A97 Help:
Use the MSysConf table with linked SQL databases
If you are administering an SQL database that uses Microsoft Access as a
front end, you can create a table in your SQL database named MSysConf to
help you control communication between the two applications. The
MSysConf table has two potential functions:
· It can disable the feature that enables users to save the logon ID and
password for a linked SQL database in the Microsoft Access front end.
· It can optimize how Microsoft Access performs background population of
records during idle time by setting the number of rows of data that are
retrieved at one time and the number of seconds of delay between each
retrieval. Microsoft Access uses a default of 100 records returned every
10 seconds if you don't create the MSysConf table.
....
Config nValue Meaning
101 0 Don't allow local storage of the logon ID and password in linked
tables.
101 1 Allow local storage of the logon ID and password in linked tables.
102 D D is the delay in seconds between each retrieval.
103 N N is the number of rows retrieved.
Notes
· Setting a higher delay time decreases network traffic, but increases
the amount of time that read-locks are left on data (if the server uses
read-locks).
· If you create an MSysConf table, it must be set up properly or you
will not be able to connect to the SQL database table at all.
From "Jet Database Engine Programmer's Guide" (Jet 3.5):
The MSysConf table is a special table that you create in your remote
database. You can use it to:
· Prevent users from storing the Login ID and password locally for a
linked SQL table.
· Set the number of records that are retrieved at one time.
· Set the number of seconds of delay between each retrieval.
....
The MSysConf table currently recognizes three configuration settings.
These settings are activated by adding a record to the table for each
setting. Currently, only the Config and nValue fields are used; the
chValue and Comments fields are reserved for future use and are ignored
in this release.
BTW, I would be interested in hearing about experiences from anyone who
has done any significant tweaking of those settings.
James A. Fortune
[email protected]