I am new to acces and and running into a problem.
I have the following query on a form:
SELECT qry_Order.MRN, qry_Order.LastName, qry_Order.FirstName, [LastName] & " , " & [FirstName] AS Name, qry_Order.Memo, qry_Order.OrderID, qry_Order.From, qry_Order.To, qry_Order.Date, qry_Order.Payment, tbl_Shipment.ShipmentID, tbl_Shipment.FacilityDecision, tbl_Shipment.FacilityReason, tbl_Shipment.CustomerDecision, tbl_Shipment.CustomerReason, tbl_Shipment.Notes, tbl_Shipment.ShipDate, tbl_Shipment.ReceiptDate, tbl_Shipment.LastIP, tbl_Shipment.Item, tbl_Shipment.ReleasedTo, tbl_Shipment.Released, tbl_Return.ReadmitID
FROM (qry_Order INNER JOIN tbl_Shipment ON qry_Order.OrderID = tbl_Shipment.OrderID) LEFT JOIN tbl_Return ON tbl_Shipment.ShipmentID = tbl_Return.ShipmentID
WHERE ((([LastName] & " , " & [FirstName]) Like [forms]![flkp_VerifyShipment_MRN].[cboMRN] & "*"))
ORDER BY qry_Order.LastName
This form takes info from an order query that combines customer and order details to display the order.
From this form I have a shipment form that provides for entry of shipment details. This form is displayed by:
SELECT [LastName] & " , " & [FirstName] AS Name, tbl_Order.*, tbl_Shipment.*, [ReceiptDate]-[ShipDate] AS LOS
FROM (tbl_Info_Pt LEFT JOIN tbl_Order ON tbl_Info_Pt.MRN = tbl_Order.MRN) LEFT JOIN tbl_Shipment ON tbl_Order.OrderID = tbl_Shipment.OrderID
The problem that i am having is that when I add the shipment details a duplicate record is placed in the orders table (which I do not want to happen). I have tried several differnt methods of solving this problem but am coming up with nothing.
Please help.