Hello all,
Re the code below, I am using Combo40 to find an EquipmentID record, which works fine. However, an Equipment can have two suppliers. Both suppliers are listed in Combo40, but when choosing the second supplier from Combo40, the record found always defaults to the first supplier.
I would appreciate some help in modifying the standard wizard code above to force the find to look at the EquipmentID and also the VendorID.
FYI, I have a vendor, equipment and equipment/vendor junction table. The comboo is via a query from the three tables.
Thanks
Private Sub Combo40_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[EquipmentID] = " & str(Nz(Me![Combo40], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub