Hello.
i have this code:
Private Sub cboOrgNick_LostFocus()
'making auto-populate textbox with incremental numbering
'if combo box is not empty
If Me!cboOrgNick = "" Or Me!cboOrgNick = Null Then
Exit Sub
'do nothing or
Else
'get new number
Me![nMembNum] = NewMembNum()
'prevent user from selecting the field
Me![tFName].SetFocus
End If
End Sub
even though cboOrgNick is empty (Null in debug window) it continue to execute after the Else Clause, executing the NewMembNum().
why is the construct do not exit even if is true?
i have this code:
Private Sub cboOrgNick_LostFocus()
'making auto-populate textbox with incremental numbering
'if combo box is not empty
If Me!cboOrgNick = "" Or Me!cboOrgNick = Null Then
Exit Sub
'do nothing or
Else
'get new number
Me![nMembNum] = NewMembNum()
'prevent user from selecting the field
Me![tFName].SetFocus
End If
End Sub
even though cboOrgNick is empty (Null in debug window) it continue to execute after the Else Clause, executing the NewMembNum().
why is the construct do not exit even if is true?