Hi all,
I created a Log In form which has a combo box (cboUserName) a text box (txtPassword) and a button (cmdLogIn).
On click event I entered the below code;
Private Sub cmdLogIn_Click()
If Me.cboUserName.ColumnCount(2) = Me.txtPassword Then
MsgBox "Welcome"
End If
End Sub
It throws an error
Compile Error;
Wrong number of arguments or invalid property assignment
where as in column count property of cboUserName is set to 3
Appreciating your help.