The InputBox function needs to be used in a command button to prompt the user for a number.
I know that the syntax is (prompt, title), whereprompt is the message you want displayed inside the dialog box [in this case - "Enter a number"], and title is the next you want displayed in the dialog box's title bar.
Since the application also needs to show the 'student's name' on the form would I need to use the Val function to show the name and results in the lblMsg?
Now to I go about changing
Private Sub cmdSquare_Click() 'calculate square of a number lblTSquare.Caption = txtNumber ^ 2 'calculate square root of a number lblTroot.Caption = Sqr(txtNumber.Text) End Sub
so that it prompts for the user for a number and does the calculations?