Yeah I was thinking in the AfterUpdate of the combobox.
That's right I want to check if a value is already selected in the current recordset of the subform.
I tried variants of the following code, it never worked, no errors but always same message box.
Code:
If Me.Recordset = Forms!CreateOrders!VendorInventoryLevelSubform.ProductID Then
'MsgBox "Product Found!"
'Else
'MsgBox "Product Not Found!"
'End If
I've tried this.
Code:
If Not IsNull(Me.BarsGivenExtra) Then
If DCount("Product", "Inventory") = Me.Recordset.ProductID Then
MsgBox "Product Found!"
Else
MsgBox "Product Not Found!"
End If
End If
And I've tried the following.
Code:
If Not IsNull(Me.BarsGivenExtra) Then
If DCount("Product", "Inventory", "[Product] = '" & Me.Productdropdown & "'") > 0 Then
MsgBox "Product Found!"
Else
MsgBox "Product Not Found!"
End If
End If