Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SELECT ... FROM ... IN 'location' problem 1

Status
Not open for further replies.

acent

Technical User
Feb 17, 2006
247
US
I have been searching for some time on the Access forums but haven't quite seen a probllem lik this.

I have a report in a sales database that has the following on open script:
Code:
sqlst = "SELECT ... " _
   & "FROM ... IN '\\networkpath\po_be.mdb' " _
   & "WHERE ...;"
Me.RecordSource = sqlst
I just split my po database and put a password on po_be.mdb. Now when I try and run this report, I get a runtime 3031 invalid password error.

Is there a way to define the password? I don't want to like the tables to the sales database for security reasons.

Thanks,

Andrwe


"God is a comedian playing to an audience too afraid to laugh."
-- Francois Marie Arouet (Voltaire)
 
Something like this?
Code:
sqlst = "SELECT ... " _
   & "FROM [;database=\\networkpath\po_be.mdb;PWD="Password"].TableName " & _
   & "WHERE ...;"
 
Thanks for the reply. Unfortunately that yeilded the same error message.

Anderw

"God is a comedian playing to an audience too afraid to laugh."
-- Francois Marie Arouet (Voltaire)
 
Sorry. Remove the quotes
Code:
sqlst = "SELECT ... " _
   & "FROM [;database=\\networkpath\po_be.mdb;PWD=Password].TableName " & _
   & "WHERE ...;"
 
Thank You!!! that worked wonders!

"God is a comedian playing to an audience too afraid to laugh."
-- Francois Marie Arouet (Voltaire)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top