Solved

How can I By-pass or auto login to an ODBC database

Posted on 2008-06-20
8
1,162 Views
Last Modified: 2012-08-14
How  can I By-pass the user id and password prompts or auto login to an ODBC database?
0
Comment
Question by:mbrennan_pacbell_net
[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
8 Comments
 
LVL 5

Accepted Solution

by:
Steve Dubyo earned 168 total points
ID: 21834481
Those details can be embedded.  Is this a linked table we are talking about ?
0
 

Author Comment

by:mbrennan_pacbell_net
ID: 21834608
Yes,  It is a linked table (Specicially linked into an Access database).

Thanks,

Mike
0
 
LVL 2

Expert Comment

by:jgoeders
ID: 21835193
Workspaces(0).OpenConnection("MyNewConnection", , , "ODBC;DSN=...;UID=MYLOGON;PWD=MYPASSWORD")
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 2

Assisted Solution

by:jgoeders
jgoeders earned 166 total points
ID: 21835195
connect to an odbc database through this code:

Workspaces(0).OpenConnection("MyNewConnection", , , "ODBC;DSN=...;UID=MYLOGON;PWD=MYPASSWORD")

insert the DSN of the database and you logon and password.  then just run this code when the database opens.
0
 
LVL 7

Expert Comment

by:Dauhee
ID: 21837321
optionally remove the password from the access database :)
0
 
LVL 30

Assisted Solution

by:hnasr
hnasr earned 166 total points
ID: 21838710
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
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…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

733 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