473,396 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Automatically Link Tables on Database Opening?

Hi,
I've linked several tables from a SQL 2000 server, and used there data to create Pivot tables on my load form. this works fine. However when i added a form that shows tables info in list boxes (using queries) it asks for a user name and password every time the database is opened.
Is there anyway i could give these details automatically, i've tried opening a connection on load and i've tried looping through each table giving the connection string and refreshing the link.

Any help at all would be greatly appreciated
Thanks
Feb 27 '07 #1
6 2785
MMcCarthy
14,534 Expert Mod 8TB
When linking to SQL Server tables use an odbc link. If you have already done so try doing it again. Once the username and password is given once it shouldn't ask for it again.

Mary
Feb 27 '07 #2
I am using a ODBC link, however its on the initial opening of the Database that i want to be able to give the password automatically to the SQL server login, once open it run's fine. Sorry if i was'nt being clear enough (first post and all)
Thank for the reply
Feb 28 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
I am using a ODBC link, however its on the initial opening of the Database that i want to be able to give the password automatically to the SQL server login, once open it run's fine. Sorry if i was'nt being clear enough (first post and all)
Thank for the reply
OK this is a little confusing. The password should be hard coded into the linked tables. Open one of the tables in design view and then open the properties window. Under the description property you should see something like the following:

ODBC;DSN=DSN_Name;APP=Microsoft® Access;
Server=ServerName;DATABASE=DatabaseName;USERNAME=u sername;
PASSWORD=Password;Trusted_Connection=Yes;TABLE=Tab leName
Feb 28 '07 #4
The properties of the Linked tables look like this
[ODBC;DSN=ODBC_PnP_RampUp_Manager;Description=PnP_R ampUpManager_DB _Connection;APP=Microsoft Office 2003;WSID=PC;DATABASE=*******;TABLE=******]
Its not a trusted connection it uses SQL authentication not just a network login
Feb 28 '07 #5
MMcCarthy
14,534 Expert Mod 8TB
The properties of the Linked tables look like this
[ODBC;DSN=ODBC_PnP_RampUp_Manager;Description=PnP_R ampUpManager_DB _Connection;APP=Microsoft Office 2003;WSID=PC;DATABASE=*******;TABLE=******]
Its not a trusted connection it uses SQL authentication not just a network login
Try recreating the DSN. This time there should be an option to hard code the Username and Password.

Mary
Feb 28 '07 #6
NeoPa
32,556 Expert Mod 16PB
If this doesn't help, then we'd be happy to move this to the SQL Server forum for you, where the experts there should no more about it.
Although this presents when using Access, it's not really an Access issue as such.
Mar 2 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: BlackFireNova | last post by:
I have an existing database, and I need to add another table to it. The database tracks equipment, however I have a need to track ancillary items which are purchased or added to some of the...
4
by: Alex | last post by:
Is there any way to link a table to a front end for reference only (no requirement to edit data) so that the LDB file is not created. I use a number of tables for reference and do not need to edit...
3
by: Tony | last post by:
With respect to the questions below, please assume that our database(s) and all text files are shared on a network file server. When opening a shared MDB, what is the effect of its accessing data...
1
by: cleary1981 | last post by:
Hi, I have this script for backing up a database that when it is run the option comes up to save the file. Can anyone show me how I would change this script so that the script automatically saves...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.