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
Solved

Connecting to Access

Posted on 1998-09-02
2
137 Views
Last Modified: 2010-04-04
Hi. I want to connect to an Access database. I have tried doing it, it works, but everytime I start the program, it asks for a login & Password. I can click enter (The database is not secure) but it's annoying. The Best way would be if I COULD put a password, but let my application enter it automatically. Another solution, is to use the users protection scheme. Because I WILL use users in my application, I CAN use the login to the Database as my user's account (It can ever save me some time, and password encoding...) But How do I know, in runtime, in my program, which user is using the database?

I hope I am clear,
                     Ron.
0
Comment
Question by:ShadowHawk071998
2 Comments
 

Accepted Solution

by:
ellessar earned 100 total points
ID: 1338476
You can use the GetUserName function to find out what
the name of the current logged on user is, alternatively
you can prompt your user for a password and username
and assume that this will hold true for the entire
session. In your TDatabase component just add the following parameters
  user name = (add user name)
  password = (add password)
then set the loginprompt property to false (to prevent
the database component for prompting for a connection)programatically once the user has logged on. You may
also want to use a generic read only logon and password
to access a users permissions tables prior to actually performing the logon.
0
 

Author Comment

by:ShadowHawk071998
ID: 1338477
Thanks. But I have to say that I had one trouble: YOu have to write it without spaces :
user name=
password=yourpassword

or it doesn't work (And it took me the better part of an hour to get it right...)

bye!

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

840 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