I have done something similar. What I do is set the start up options to open a form that is bound to a hidden table, and then store their username and password there. Then I open a hidden form with the username and password fields, and keep that open while they are in the database. If they want to run a transaction, then I use the credentials found on the form. The hidden form's on close event runs a delete query to clean out the credentials from the table.
If you want to check their credentials when they first log in, then you can use them to try to open a connection to the database. Like:
On Error Resume Next
Err.Clear
Set cn = New ADODB.Connection
etc...
If Err <> 0 Then
MsgBox "Please enter proper credentials", vbCritical
DoCmd.OpenQuery "qryDeleteCredsTable"
DoCmd.Close 'this intermediate form
DoCmd.OpenForm "frmLoginForm"
End If
The frmLoginForm should have an application exit button on it, and should be pop up and modal.
Does any of that help?
mmcdonal
Look it up at:
http://wrox.books24x7.com