The following VBA code that connects to SQL Server in an Access adp project works without any problem on my computer but does not work on another user's computer.
CurrentProject.CloseConnection
ConStr = "Provider=sqloledb;Data Source=UK009125D\SQLExpress;Integrated Security=SSPI;Initial Catalog=MyDatabase;User ID=xxxxxxxx;Password=yyyyyyyy"
CurrentProject.OpenConnection ConStr
Is there some mistake in the above VBA Code? Please help.
With Thanks
Ashok
CurrentProject.CloseConnection
ConStr = "Provider=sqloledb;Data Source=UK009125D\SQLExpress;Integrated Security=SSPI;Initial Catalog=MyDatabase;User ID=xxxxxxxx;Password=yyyyyyyy"
CurrentProject.OpenConnection ConStr
Is there some mistake in the above VBA Code? Please help.
With Thanks
Ashok