Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / May 2005

Tip: Looking for answers? Try searching our database.

ODBC connection

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
deodev - 11 May 2005 17:26 GMT
Hello,

I have linked several tables to a database  called sondb on the SQL server
called orlapp.  I have used a DSN called MYAPP with userid and password of
"monthly"

Once I open the database and run my query I have to sgn on using the user id
and password.

I would like to use code to connect to the server without having to sign on
manually.

Can someone please let me know what the code should be.

Signature

deodev

Dave Patrick - 11 May 2005 18:06 GMT
Delete and recreate the links but this time check the box for 'Save
password'

Signature

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

| Hello,
|
[quoted text clipped - 9 lines]
|
| Can someone please let me know what the code should be.
deodev - 11 May 2005 18:58 GMT
Thanks.  Would this work if  someone else access the database from their PC?
If not, can it be coded to create the DSN and the appropriate sign on?

> Delete and recreate the links but this time check the box for 'Save
> password'
[quoted text clipped - 14 lines]
> |
> | Can someone please let me know what the code should be.
Dave Patrick - 11 May 2005 19:10 GMT
Yes because the connection string (including the username and password) is
stored in the 'Connect' column of the hidden access table 'MSysObjects'

The DSN you created to make the links is no longer needed.

Signature

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

| Thanks.  Would this work if  someone else access the database from their PC?
| If not, can it be coded to create the DSN and the appropriate sign on?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.