Hi all,
I know this can be done, but I'm struggling with the whole relinking of database tables, connections etc etc.
Here is the situation.
I have a database FE / BE setup where the data (BE) database needs to be secured using a password. Easy enough
Now the front end needs to connect to the back end WITHOUT typing the password to access the Back end data. I have seen examples of this being done and have a database example of it, but I can't seem to grab the code and get it to work into this database.
I'm thinking that this is a fairly standard thing to do in a FE / BE situation, so I'd appreciate some help, guidance, some one to step me through how it's done?
Here is what I think is the connection code, but there are a number of these snippets in my example db:
I know this code alone won't work for me (I've tried) but it is an example of what I'm trying to achieve.
-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
I know this can be done, but I'm struggling with the whole relinking of database tables, connections etc etc.
Here is the situation.
I have a database FE / BE setup where the data (BE) database needs to be secured using a password. Easy enough
Now the front end needs to connect to the back end WITHOUT typing the password to access the Back end data. I have seen examples of this being done and have a database example of it, but I can't seem to grab the code and get it to work into this database.
I'm thinking that this is a fairly standard thing to do in a FE / BE situation, so I'd appreciate some help, guidance, some one to step me through how it's done?
Here is what I think is the connection code, but there are a number of these snippets in my example db:
Code:
strSQL = "SELECT * " & _
"FROM tblUpdateSQL " & _
"WHERE (((tblUpdateSQL.Run)=False)) order by autoref asc;"
strLocalPath = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & CurrentDb.Properties(0) & ";Jet OLEDB:Database Password=[password here];"
rst.Open strSQL, strLocalPath, adOpenDynamic, adLockBatchOptimistic
I know this code alone won't work for me (I've tried) but it is an example of what I'm trying to achieve.
-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."