Hi All,
I have a table NonReworkablepa rts with 2 fields of interest , Program Number and PartNo.
On my form the idea is to select a program number from a combo box and when I type in a part number if it is in the table then it gives out a msgbox.
There will be multiple part numbers, that's why I need to make sure I match against the program also.
I've been playing with DLookup, but I've had no luck so far, this is my latest attempt.
If IsNull(DLookup( "[PartNo]", "NonReworkablep arts", "[PartNo] = '" & Me.Part_Number & "'")) _
& " AND [Program Number] = '" & Me.Combo87 & "'" Then
Appreciate any help you guys can give.
Best regards,
Mark
I have a table NonReworkablepa rts with 2 fields of interest , Program Number and PartNo.
On my form the idea is to select a program number from a combo box and when I type in a part number if it is in the table then it gives out a msgbox.
There will be multiple part numbers, that's why I need to make sure I match against the program also.
I've been playing with DLookup, but I've had no luck so far, this is my latest attempt.
If IsNull(DLookup( "[PartNo]", "NonReworkablep arts", "[PartNo] = '" & Me.Part_Number & "'")) _
& " AND [Program Number] = '" & Me.Combo87 & "'" Then
Appreciate any help you guys can give.
Best regards,
Mark
Comment