I have a report that is based on a one table "Tbl_OGCombined6" select query. The report and query work fine. When the select query is run I need it to pick up four dates "ComStartDt" "ComEndDt" "ReqStartDt" "ReqEndDt" from the form and add the dates to the query. When I add the statement to pick up the dates from the form it doesn't pull the data in. I get "Expr1:" but the fields are empty.
Only one date is shown below, for simplicity, as the same problem is happening with each date.Access 2007 query builder:
Expr1: [Forms]![Frm_Main]![Sub_Frm_InventoryTabs].[Form]![ComStartDt]
The path is correct. Main Form --> Nested Sub Form --> Field ComStartDt
SQL Statement from query builder View SQL:SELECT Tbl_OGCombined6.VendorName, Tbl_OGCombined6.ItemName, Tbl_OGCombined6.UnitYield, Tbl_OGCombined6.IUMeasure, Tbl_OGCombined6.ProductionQuantity, Tbl_OGCombined6.PUOnHand, Tbl_OGCombined6.PURequired, Tbl_OGCombined6.PUCommitted, Tbl_OGCombined6.Roundup, Tbl_OGCombined6.ItemNumber, Tbl_OGCombined6.PUPrice, Tbl_OGCombined6.Cost, [Forms]![Frm_Main]![Sub_Frm_InventoryTabs].[Form]![ComStartDt] AS Expr1
FROM Tbl_OGCombined6;
Any suggestions?
Thanks,
Phred