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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sql-Access Connection problem

Status
Not open for further replies.

biggoober

Programmer
Oct 3, 2001
22
0
0
US
I have 2 windows 7 computers on a network.
One has a Sql Server 2008 database, I can connect access 2007 to the sql database from the other computer and everything works fine.
But when I close Access 2007, and then run it again, it won't find the database (password is saved).
If I do server/connection/ test connection, the connection is there, if I click OK, it re attaches, and works fine. Until I close the application and re-open it.

Any ideas?

 
Did you use odbc connection or another?
Did you use vba code if so you have to create a connection of this type:
'Set conn = New ADODB.ConnectionconSQL.Open "Driver=SQL Server; Server=xxxxxx; Database=xxxxxx; UserID=xxxxxx; Password=xxxxxx"

If you are in a netework you have to create the conection that is almost the same of the above but has the netework conection name.

If you use any other tipe of conection you can have problems.

For more help tell me what its the type of connection and vba code of the connection.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top