L
Ling
I have converted an ordinary query to a pass through
query. here's the syntax:
SELECT tblDo.DoNumber AS [DO No], tblDo.DoYear AS [Year],
tblDo.DoDate AS [DO Date]
FROM tblDo
WHERE (((tblDo.DoDate) Between [Forms]![frmDeliveryOrder
(pop)]![txtstartYr] And [Forms]![frmDeliveryOrder (pop)]!
[txtendYr]))
ORDER BY tblDo.DoDate DESC;
However, this query could not work. There's an error msg
saying syntax near '!'.
I tink the error is here: Between [Forms]!
[frmDeliveryOrder (pop)]![txtstartYr] And [Forms]!
[frmDeliveryOrder (pop)]![txtendYr]))
But I need to narrow down the records returned according
to this criteria.
Any ideas?
Thanx
Ling
query. here's the syntax:
SELECT tblDo.DoNumber AS [DO No], tblDo.DoYear AS [Year],
tblDo.DoDate AS [DO Date]
FROM tblDo
WHERE (((tblDo.DoDate) Between [Forms]![frmDeliveryOrder
(pop)]![txtstartYr] And [Forms]![frmDeliveryOrder (pop)]!
[txtendYr]))
ORDER BY tblDo.DoDate DESC;
However, this query could not work. There's an error msg
saying syntax near '!'.
I tink the error is here: Between [Forms]!
[frmDeliveryOrder (pop)]![txtstartYr] And [Forms]!
[frmDeliveryOrder (pop)]![txtendYr]))
But I need to narrow down the records returned according
to this criteria.
Any ideas?
Thanx
Ling