mwirigijm
Jan 28th, 2005, 04:10 AM
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.
Pino
Jan 28th, 2005, 05:57 AM
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.
Ok, Welcome to the forums,
You can limit the online time by adding a counter (Either using GetTickCout API or a standard VB timer) on the client side, then when the time is 2 hours it closes the client app down.
How can you trap the error? Simple answer you shouldnt get one, i have made something similar in the past and all i did was the following
Client sends username/password > Server gets this and looks in DB, If its there server send back "y" if not server sends back "n"
Please respond back with any problems you are having, I've explained as best I can based on your initial post :)
Pino