?
Solved

Connecting to Access

Posted on 1998-09-02
2
Medium Priority
?
141 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
[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
2 Comments
 

Accepted Solution

by:
ellessar earned 300 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

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month15 days, 14 hours left to enroll

741 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