Solved

How to avoid prompting of AS400 user name and password when running queries based on linked table in an Access program?

Posted on 2013-01-20
6
738 Views
Last Modified: 2013-01-24
I need help in automating the part when a user has to input his userid and password every time he runs the access program, is there some function which can be used to store the users id, password, AS400 server details for connection so that the user only needs to save them once?

There will be several linked tables so he will have to enter the id and password depending on the number of links and queries.


MS Access version is 2010
0
Comment
Question by:josyp
  • 3
  • 2
6 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 250 total points
ID: 38798602
You can save the user credentials directly in the linked tables. To do that, delete the links and then recreate them, but this time be sure to check the "Save Password" box when you create the links.
0
 
LVL 20

Assisted Solution

by:clarkscott
clarkscott earned 250 total points
ID: 38800651
If multiple users, have your system folks create a "generic" account and apply this username and password when linking to AS400.  All users will then have access.

If you want to control who uses the database, maintain a "user list" and examine during startup.

Scott C
0
 

Author Comment

by:josyp
ID: 38811697
I've requested that this question be deleted for the following reason:

Not the answer that I was looking for
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 84
ID: 38811698
Not quite sure what you mean by "not the answer I was looking for". Can you elaborate? Did you find an alternative solution?
0
 
LVL 84
ID: 38814371
Note that my comment regarding saving the password in the link connect string is the standard method used when you don't want to prompt the user for credentials.

clarkscott's comment is relevant also, and should be accepted along with my solution.
0
 

Author Comment

by:josyp
ID: 38814526
I have raised another question and supported it with necessary document to clarify my requirement, that is why I wanted to close this case, it's not that the solutions provided where wrong, but what I wanted was something else, regret for being blunt in my approach, I should have been more specific.  Thank you all for the time and effort taken to review and provide solutions.

The new question that I have raised is this:
"How to automate MS Access program to import data from different database?"
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now