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
777 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 85

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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 85
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 85
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

705 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