J
Jeremy Ellison
I am lost...I am new to all of this, so hopefully I can ask the question well
enough for you folks to help. I have searched all the related articles and
internet for the past three days, but I just can't seem to adapt any code to
work for me.
I am working on an access .mdb. I am creating a custom "sign on" form where
the users need to enter their username in one field and a password in another
field. They will then click "OK" and I want it to check if their username
and password is correct...if it is I want them to enter the database, else
they are denied.
Because the company I work for already has a large database system which
everyone has a username and password for, I want mine to go out and check
that same password and user name.... I have spoken with our IT folks and
they told me they accomplish thsi verification using a stored procedure on an
oracle database. The stored procedure name is:
permanent_report.rmsutils.logonuser
Apparently they use the following code in their program (Delphi ???) to
check the username/password and return whether it is valid and some other
information:
cstmt =
conn.prepareCall("call
permanent_report.rmsutils.logonuser@gis_rms.OurCompany.city ( " +
"?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ");
cstmt.setString(1, agency.trim());
cstmt.setString(2, userName.trim());
cstmt.setString(3, password.trim());
cstmt.setString(10, "F"); // Log Session
cstmt.registerOutParameter ( 4, java.sql.Types.VARCHAR );
// User_Id
cstmt.registerOutParameter ( 5, java.sql.Types.VARCHAR );
// Result
cstmt.registerOutParameter ( 6, java.sql.Types.VARCHAR );
// IsAdmin?
cstmt.registerOutParameter ( 7, java.sql.Types.VARCHAR );
// Last Name
cstmt.registerOutParameter ( 8, java.sql.Types.VARCHAR );
// First Name
cstmt.registerOutParameter ( 9, java.sql.Types.VARCHAR );
// Unit
cstmt.execute();
-------------------------------
SO -->
I have tried to adapt so many different pieces of code and been
unsuccessful... I don't have a clue what I am doing wrong, the error
messages are not making sense...I am hopeing someone can guide me down the
right path...I have tried code within my form that is executed with the
command button, cmdLogon, I have just experimented with a "pass - through
query" and I can't get anything to work right.... arg
Thank you for your time...
enough for you folks to help. I have searched all the related articles and
internet for the past three days, but I just can't seem to adapt any code to
work for me.
I am working on an access .mdb. I am creating a custom "sign on" form where
the users need to enter their username in one field and a password in another
field. They will then click "OK" and I want it to check if their username
and password is correct...if it is I want them to enter the database, else
they are denied.
Because the company I work for already has a large database system which
everyone has a username and password for, I want mine to go out and check
that same password and user name.... I have spoken with our IT folks and
they told me they accomplish thsi verification using a stored procedure on an
oracle database. The stored procedure name is:
permanent_report.rmsutils.logonuser
Apparently they use the following code in their program (Delphi ???) to
check the username/password and return whether it is valid and some other
information:
cstmt =
conn.prepareCall("call
permanent_report.rmsutils.logonuser@gis_rms.OurCompany.city ( " +
"?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ");
cstmt.setString(1, agency.trim());
cstmt.setString(2, userName.trim());
cstmt.setString(3, password.trim());
cstmt.setString(10, "F"); // Log Session
cstmt.registerOutParameter ( 4, java.sql.Types.VARCHAR );
// User_Id
cstmt.registerOutParameter ( 5, java.sql.Types.VARCHAR );
// Result
cstmt.registerOutParameter ( 6, java.sql.Types.VARCHAR );
// IsAdmin?
cstmt.registerOutParameter ( 7, java.sql.Types.VARCHAR );
// Last Name
cstmt.registerOutParameter ( 8, java.sql.Types.VARCHAR );
// First Name
cstmt.registerOutParameter ( 9, java.sql.Types.VARCHAR );
// Unit
cstmt.execute();
-------------------------------
SO -->
I have tried to adapt so many different pieces of code and been
unsuccessful... I don't have a clue what I am doing wrong, the error
messages are not making sense...I am hopeing someone can guide me down the
right path...I have tried code within my form that is executed with the
command button, cmdLogon, I have just experimented with a "pass - through
query" and I can't get anything to work right.... arg
Thank you for your time...