Hi everyone,
i have a main form named BillDataMov_F these form containing subform named itemMov_FT it’s a continuous form, what i want is when the user enter items in the continuous subform the items not duplicated, what i mean that if the user enter item which is entered before the code check the previous txtbox in the same form if the user entered item msgbox appear “the item is entered before”.
i use these code but the code is wrong becuse the msgbox is appear whenever i enter a value greater than 0
If DCount(“item_no_IM”, “BillDataMov”, “item_no_IM = ” & item_no_IM) >0 Then
MsgBox “the item is entered in the above txtbox”
Cancel = True
End If
please help
Regards