G
Guest
I have a Client form, ClientID,Name, Address etc; with a subform with the
following;
SELECT OrderDetail.OrderID, OrderDetail.ProductID, OrderDetail.StoreID,
OrderDetail.Date, OrderDetail.Quantity, OrderDetail.Spreading,
OrderDetail.Cartage, CCur(([Quantity]*[Spreading]+[Quantity]*[Cartage])) AS
Total FROM OrderDetail; This has been working fine.
I am trying, to get the OrderDetail.Cartage to self populate from the
Cartage tbl after the OrderDetail has been entered. I have been trying with
the following but get syntax error.
LookUp( [OrderDetail].[Cartage] FROM [Cartage]![Cost] WHERE
[Order]![ClientID]=[Cartage]![ClientID] AND
(([OrderDetail]![StoreID])=[Cartage]![StoreID]);
I have been trying to marry the lookUp into the Query SQL. Is this the
correct place?
Help appreciated and thank you inadvance
following;
SELECT OrderDetail.OrderID, OrderDetail.ProductID, OrderDetail.StoreID,
OrderDetail.Date, OrderDetail.Quantity, OrderDetail.Spreading,
OrderDetail.Cartage, CCur(([Quantity]*[Spreading]+[Quantity]*[Cartage])) AS
Total FROM OrderDetail; This has been working fine.
I am trying, to get the OrderDetail.Cartage to self populate from the
Cartage tbl after the OrderDetail has been entered. I have been trying with
the following but get syntax error.
LookUp( [OrderDetail].[Cartage] FROM [Cartage]![Cost] WHERE
[Order]![ClientID]=[Cartage]![ClientID] AND
(([OrderDetail]![StoreID])=[Cartage]![StoreID]);
I have been trying to marry the lookUp into the Query SQL. Is this the
correct place?
Help appreciated and thank you inadvance