G
Guest
Hi folks,
I'm have a query set up which retrieves data from a batchArchive table
and restores it to the 'main' Batch table. The dates are selected using the
DateTime Picker control which works as intended. What I wanted to do was
count the number of records that are going to be restored to the Batch table,
informing the user before the transfer takes place but the query always
returns nothing :
SELECT Count(BatchArchive.[Date Input]) AS [CountOfDate Input]
FROM BatchArchive
HAVING (((Count(BatchArchive.[Date
Input]))>=CDate([Forms]![ArchiveParams]![ActiveXCtl5]) And
(Count(BatchArchive.[Date
Input]))<=CDate([Forms]![ArchiveParams]![ActiveXCtl7])));
It's the same query I use for the import, with only COUNT added, anyone help?
Thanks,
Jim.
I'm have a query set up which retrieves data from a batchArchive table
and restores it to the 'main' Batch table. The dates are selected using the
DateTime Picker control which works as intended. What I wanted to do was
count the number of records that are going to be restored to the Batch table,
informing the user before the transfer takes place but the query always
returns nothing :
SELECT Count(BatchArchive.[Date Input]) AS [CountOfDate Input]
FROM BatchArchive
HAVING (((Count(BatchArchive.[Date
Input]))>=CDate([Forms]![ArchiveParams]![ActiveXCtl5]) And
(Count(BatchArchive.[Date
Input]))<=CDate([Forms]![ArchiveParams]![ActiveXCtl7])));
It's the same query I use for the import, with only COUNT added, anyone help?
Thanks,
Jim.