Originally Posted by
Epona
I look forward to a solution
Whoa not so fast. Your bad luck, you have a slow coach trying to help you.
Am still trying to understand things.:-(
Check out if the below gives some guidelines in beginning to build up things :
Code:
SELECT
tblFileLCDetails.FileNumber,
tblFileLCDetails.DateOP,
tblFileLCDetails.DateOPSup,
tblFileLCDetails.DatePortArrival,
tblFileLCDetails.LCComplete,
tblFileLCDetails.InTransit,
tblFileLCDetails.AtPort,
tblFileLCDetails.Delivered,
tblFileLCDetails.LCOpening,
tblFileLCDetails.BankSetMargin,
tblFileLCDetails.Insurance,
tblFileLCDetails.FreightCost,
tblFileLCDetails.Customs,
tblFileLCDetails.MultiModalC,
tblFileLCDetails.InlandTrspt,
tblFileLCDetails.ContainerDemurrage,
tblFileMaterialPurchaseDetails.ItemsPurchaseID,
tblFileMaterialPurchaseDetails.FileNumber,
tblFileMaterialPurchaseDetails.MatId,
tblFileMaterialPurchaseDetails.TotalQuantityToBePurchased,
tblMaterialMaster.MatId,
tblMaterialMaster.UOM,
tblMaterialMaster.LeadTime,
tblMaterialMaster.UnitCOst,
tblMaterialMaster.MinOrderQuantity,
tblMaterialMaster.OPTime,
tblMaterialMaster.SupTime,
tblMaterialMaster.SailTime,
tblMaterialMaster.ClTime,
DateAdd("d",[SupTime]+[SailTime],[DateOP]) AS GoodsLandingDate,
DateAdd("d",[ClTime],[GoodsLandingDate]) AS CustomsAndMultiModalPaymentDate,
DateAdd("d",10,[CustomsAndMultiModalPaymentDate]) AS InlandTransportContainerDemurragePaymentDate
FROM
tblFileLCDetails
INNER JOIN
(
tblFileMaterialPurchaseDetails
INNER JOIN
tblMaterialMaster
ON
tblFileMaterialPurchaseDetails.MatId = tblMaterialMaster.MatId
)
ON
tblFileLCDetails.FileNumber = tblFileMaterialPurchaseDetails.FileNumber;
Thanks