Aerowolf
Programmer
- Nov 6, 2002
- 64
Here's the code I've got:
Dim QTY As String, q As Integer, p As Integer, ITEM As String
ITEM = InputBox("Enter unit part #:")
DoCmd.OpenForm "frmBOM"
DoCmd.ApplyFilter , [Forms]![frmBOM]![PARENTPART] = ITEM
If [Forms]![frmBOM]![PARENTPART] <> ITEM Then
result = MsgBox("There is no Bill of Materials for this item.")
DoCmd.Close acForm, "frmBOM"
End
End If
The problem is that frmBOM is not being filtered...why not?
Edwin
Dim QTY As String, q As Integer, p As Integer, ITEM As String
ITEM = InputBox("Enter unit part #:")
DoCmd.OpenForm "frmBOM"
DoCmd.ApplyFilter , [Forms]![frmBOM]![PARENTPART] = ITEM
If [Forms]![frmBOM]![PARENTPART] <> ITEM Then
result = MsgBox("There is no Bill of Materials for this item.")
DoCmd.Close acForm, "frmBOM"
End
End If
The problem is that frmBOM is not being filtered...why not?
Edwin