R
Rhonda Fischer
Hello,
I am trying to collect date values from my Access form
to create a date range:
txtDateFrom: 22/01/2004
txtDateTo: 23/01/2004
However I am comparing these values with my table column
values which include the time:
eg.
[Turners Movements].[Date]
22/01/2004 08:11:21
22/01/2004 08:16:32 etc.
How can I do this.... following is my attempted query:
_________________________________________________________
SELECT [Turners Movements].[ID],
[Turners Movements].[Date]
FROM [Turners Movements]
WHERE DatePart("dd/mm/yyyy",[Turners Movements].[Date]) >=
[Forms]![frmInLoadDateRange]![txtDateFrom]
And DatePart("dd/mm/yyyy",[Turners Movements].[Date]) <=
[Forms]![frmInLoadDateRange]![txtDateTo]
_________________________________________________________
The error message I receive is the query is too
complicated. It's just that I'm not comparing 'apples
with apples'. When I leave the [Turners Movements].[Date]
unchanged the query runs but does not include any of the
end date entries.
Thank you very much for your suggestion.
Rhonda
I am trying to collect date values from my Access form
to create a date range:
txtDateFrom: 22/01/2004
txtDateTo: 23/01/2004
However I am comparing these values with my table column
values which include the time:
eg.
[Turners Movements].[Date]
22/01/2004 08:11:21
22/01/2004 08:16:32 etc.
How can I do this.... following is my attempted query:
_________________________________________________________
SELECT [Turners Movements].[ID],
[Turners Movements].[Date]
FROM [Turners Movements]
WHERE DatePart("dd/mm/yyyy",[Turners Movements].[Date]) >=
[Forms]![frmInLoadDateRange]![txtDateFrom]
And DatePart("dd/mm/yyyy",[Turners Movements].[Date]) <=
[Forms]![frmInLoadDateRange]![txtDateTo]
_________________________________________________________
The error message I receive is the query is too
complicated. It's just that I'm not comparing 'apples
with apples'. When I leave the [Turners Movements].[Date]
unchanged the query runs but does not include any of the
end date entries.
Thank you very much for your suggestion.
Rhonda