I'm working on a login system project. A user at the client types in his login name and password and sends it to the server. The server checks for the record in the database and grants access. However i get a runtime error if an invalid username is entered. How can i trap this? How can i limit the online time to 2hours? I'm using ado and microsoft access.