Question: Consider the following code within the frmMain module, which statement is incorrect? Public UserInput As Integer Sub cmdOK_Click() Userinput= txtlnput.Value Unload Me End Sub We

Consider the following code within the frmMain
Consider the following code within the frmMain module, which statement is incorrect? Public UserInput As Integer Sub cmdOK_Click() Userinput= txtlnput.Value Unload Me End Sub We can directly refer to the Userinput variable outside of the frmMain code because it is defined as a public variable. cmdOK_Click is a Click event procedure for a command button. All form control values are reset when the Unload Me statement is used. Any variable declared within a form module can only be used directly in the procedures for that particular form

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!