G
Guest
I have a data form using a record source based on a linked table in an Oracle
database.
I would like to have a logon form where users input their username and
password and then to pass them to the data form, in order to avoid the ODBC
logon form.
I was suggested to do something like
Private Sub Form_Open()
Dim conn As New ADODB.Connection
conn.ConnectionString = "Provider=MSDASQL;DSN=hpsic;UID=hpdba;PWD=hpdba"
conn.Properties("PROMPT") = adPromptNever
conn.Open
but it dosen't works: when users open the data form, at first the ODBC logon
form is displayed, and only after that the form open event code is executed.
Has anyone any suggestion?
Thanks,
Marta
database.
I would like to have a logon form where users input their username and
password and then to pass them to the data form, in order to avoid the ODBC
logon form.
I was suggested to do something like
Private Sub Form_Open()
Dim conn As New ADODB.Connection
conn.ConnectionString = "Provider=MSDASQL;DSN=hpsic;UID=hpdba;PWD=hpdba"
conn.Properties("PROMPT") = adPromptNever
conn.Open
but it dosen't works: when users open the data form, at first the ODBC logon
form is displayed, and only after that the form open event code is executed.
Has anyone any suggestion?
Thanks,
Marta