Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bypassing logon screen of a a VBA form bound to table linked to Oracle

Status
Not open for further replies.

mozgheib

Programmer
Dec 14, 2003
50
KW
Hello,

I was wondering how can I make my forms that are
bound to linked tables not ask about a user logon
to the database via odbc. I want to give control
to a switchboard that has a logon main screen that
loads the forms and ask for one logon instead.

Thanks.
 
When you join link the tables, make sure you enable the save password option. That way it won't ask you for the password at any point.
Alternatively, you will have to loop through all the linked tables and change the connect string to have the users password.

hth

ben

----------------------------------------------
Ben O'Hara "Where are all the stupid people from...
...And how'd they get so dumb?"
rockband.gif
NoFX-The Decline
----------------------------------------------
 
Hello,

Since I want to capture the logon user and not
save the same user for every time I went with
option two.

Now, what I did I am looping thru the tables
collection and if I find the table that is bound
to my form I call a connection object. I then load
the form. The problem is I am still getting the forms
logon screen.

Do I need to pass a parameter when calling the form??
Please advise.
 
What you need to do is loop through the tables & find the connected ones, then change the connection string of that table to include the password. You will then have to then unset it when you are finished.
There is some code at
which will give you a start, you will need to change it to include your username and password string.

hth

Ben

----------------------------------------------
Ben O'Hara "Where are all the stupid people from...
...And how'd they get so dumb?"
rockband.gif
NoFX-The Decline
----------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top