I have a bound form with Multivalue Combobox (bounded). I successfully stored data to bound field using combobox values. but I want a prevent message if any item selected from this combobox already exist in its bounded field which stored previously. I using following code but could not success...
Code:
Dim ExistDAPost As String
ExistDAPost = DLookup("PostAssigned", "tabDealingAssistant", "PostAssigned = '" & Me.AssignPost.Selected(0) = True & " '")
If ExistDAPost > 0 Then
MsgBox "This Post already assigned. Kindly Check DA Register.."
Exit Sub
End If
Comment