MetalicPrism
Programmer
I have a listbox on a form that is populated by a query.
SELECT Parts.PartID, Parts.[Part#], Parts.Description FROM Parts INNER JOIN ([Order Details] INNER JOIN NonConformance ON [Order Details].OrderID = NonConformance.OrderID) ON Parts.PartID = [Order Details].PartID WHERE ((([Order Details].OrderID)=[Nonconformance].[orderid])) ORDER BY Parts.[Part#];
This works well but populates the box will all records in the NonConformance table and is not specific to the current record. There is a orderID on the form, however the methods I have tried to use to query that... are not working. the listbox is also bound to a field in the Noconformance table to add the selection to the table. Which BTW will be the next problem as sometimes there is more then on item to add to the table so a multi select would be perfered.
Can anyone point me in the right direction?
SELECT Parts.PartID, Parts.[Part#], Parts.Description FROM Parts INNER JOIN ([Order Details] INNER JOIN NonConformance ON [Order Details].OrderID = NonConformance.OrderID) ON Parts.PartID = [Order Details].PartID WHERE ((([Order Details].OrderID)=[Nonconformance].[orderid])) ORDER BY Parts.[Part#];
This works well but populates the box will all records in the NonConformance table and is not specific to the current record. There is a orderID on the form, however the methods I have tried to use to query that... are not working. the listbox is also bound to a field in the Noconformance table to add the selection to the table. Which BTW will be the next problem as sometimes there is more then on item to add to the table so a multi select would be perfered.
Can anyone point me in the right direction?