please help me.. i keep searching anywhere but find no answer
i want to set the default value of a combobox in my edit account module based on the levelofaccesstextbox in my login module but my codes doesn't work
here's my code:
Private Sub editaccount_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If login.LevelofAccessTextBox.Text = "Student" Then
With Me.ComboBox1.Items
.Add("Student")
End With
End If
End Sub