Why am I getting this error during design time?
Error Number 5: Key cannot be null
If Me.Visible = True Then
If RetrieveSubjectsAndSection(Username, Subject) = True Then
InsertSubjectsAndSection(Username,Subject)
End If
End If
RetrieveSubjectsAndSection function checks if record exist. The code is written inside a Usercontrol. Also I have not ran the program yet.
Everytime I move the Usercontrol on the form, the error pops up. As if it is trying to connect.