Hi,

I'm building a VB5 front end for an Access 97 database and require users to log in at startup.

I have a form with the following objects on it for this purpose:

txtUserName - text box
txtPassword - text box
cmdOK - command button
cmdCancel - command button

How do I go about using these objects to log the user into the database (or more importantly to not log them in if they don't have a valid user-name/password).

Any help would be much appreciated.

Best Regards,

Rob Brown.