Professional Documents
Culture Documents
Commands
If Statements
If <condition> Then
(condition is true - do all of the actions coded in this
branch)
Else
(condition is false - do all of the actions coded in this
branch)
End If
If Statement rules
90 – 100 A
80 – 89 B
70 – 79 C
60 – 69 D
0 – 59 F
End Sub
Creating a Login Form
1. Create a login form that accepts the password as “123”.
2. If the password is correct then the system should open
Form1 and hide the current form(login form).
3. Else if the password is not entered then the system should
display the message “Enter password to proceed”
4. Else if the password entered is incorrect then the system
should display the message “Incorrect Password”
Using If Functions to create Passwords
Password coding