I've got that. that should be displayed after log on ( it can be rewrite with use IF statement)
Private Sub cmdLogon_Click() Dim age As Integer age = InputBox("please enter your age") Select Case age Case Is >= 18 MsgBox "you are" & " " & age & ", let's go to the pub" Case Is < 18 MsgBox "you are" & " " & age & ", you can't drink!" Case Is < 17 MsgBox "you are" & " " & age & ", you can't drink!" End Select End Sub
and i have task to do with that.
1. design, write and test program that requires the user to enter a username AND password. On successful login the program should dispal the message 'welcome <username>' Invalid logins will results in the message 'sorry access denied, please check your username and password and try again'
2. Alter the calculator program so that it displays an error message if the user enters any values below 0 or above 99
can u help me?
Edited 7 Years Ago by pytup: n/a