SELECT Orders.orderId, Orders.total, Orders.orderDate, Orders.name, Orders.city, Orders.orderStatusId, TransactionEntryItems.garmentSizeId, GarmentStockCodes.stockLevel, GarmentStockCodes.CJC_sub_weight2, TransactionEntryItems.garmentId
FROM (((Orders INNER JOIN Transactions ON Orders.orderId = Transactions.orderId) INNER JOIN TransactionEntries ON Transactions.transactionId = TransactionEntries.transactionId) INNER JOIN TransactionEntryItems ON TransactionEntries.transactionEntryId = TransactionEntryItems.transactionEntryId) INNER JOIN GarmentStockCodes ON TransactionEntryItems.garmentStockCodeId = GarmentStockCodes.garmentStockCodeId
WHERE (((TransactionEntryItems.actionDate)=0))
GROUP BY Orders.orderId, Orders.total, Orders.orderDate, Orders.name, Orders.city, Orders.orderStatusId, TransactionEntryItems.garmentSizeId, GarmentStockCodes.stockLevel, TransactionEntryItems.garmentId
HAVING ( ((Orders.orderStatusId)=3) OR ((Orders.orderStatusId)=4) OR ((Orders.orderStatusId)=0) )
Basically, i was to be able to take information from CJC_sub_weight2 which is in the GarmentStockCodes table - but i dont seem to be able to figure out how. I dont just put GarmentStockCodes.CJC_sub_weight2 at the end of the FROM - what should i do?
Thanks
FROM (((Orders INNER JOIN Transactions ON Orders.orderId = Transactions.orderId) INNER JOIN TransactionEntries ON Transactions.transactionId = TransactionEntries.transactionId) INNER JOIN TransactionEntryItems ON TransactionEntries.transactionEntryId = TransactionEntryItems.transactionEntryId) INNER JOIN GarmentStockCodes ON TransactionEntryItems.garmentStockCodeId = GarmentStockCodes.garmentStockCodeId
WHERE (((TransactionEntryItems.actionDate)=0))
GROUP BY Orders.orderId, Orders.total, Orders.orderDate, Orders.name, Orders.city, Orders.orderStatusId, TransactionEntryItems.garmentSizeId, GarmentStockCodes.stockLevel, TransactionEntryItems.garmentId
HAVING ( ((Orders.orderStatusId)=3) OR ((Orders.orderStatusId)=4) OR ((Orders.orderStatusId)=0) )
Basically, i was to be able to take information from CJC_sub_weight2 which is in the GarmentStockCodes table - but i dont seem to be able to figure out how. I dont just put GarmentStockCodes.CJC_sub_weight2 at the end of the FROM - what should i do?
Thanks