I'm writing an atm program. I've set my database up and I'm ready to check the login screen with the actual user's account number and pin number in the database. I'm curious how to do this, as in the proper way to do this. I'm guessing that I'm going to use an If statement to get a match for the user number of the login screen that matches the account number in the database.
If txtCustNumber = AccountID And txtCustPin = AccountPinID Then
give the user access to the atm screens
Else
message("Invalid Account or Pin!)
End If
Is this the correct way to do this? Do I need to populate a DataTable in order to check the user account number to the database account number? Is there a way to just reference the account number and pin and check the login screen? I'm planning on making a transaction report in a table to keep a record of basic atm procedures. This is all just for fun. I haven't written a program in the last 12 years, so it's all coming back but there's new things to learn. Thanks...
If txtCustNumber = AccountID And txtCustPin = AccountPinID Then
give the user access to the atm screens
Else
message("Invalid Account or Pin!)
End If
Is this the correct way to do this? Do I need to populate a DataTable in order to check the user account number to the database account number? Is there a way to just reference the account number and pin and check the login screen? I'm planning on making a transaction report in a table to keep a record of basic atm procedures. This is all just for fun. I haven't written a program in the last 12 years, so it's all coming back but there's new things to learn. Thanks...