A
Andrew
I have an MSAccess 2K database with approximately 25,000 records, sometimes
the following query, freezes and I have to kill access.
SELECT DISTINCT MainSaleTable.CopyedRPList, MainSaleTable.CopyedTotalSP,
MainSaleTable.LastSaleDate
FROM MainSaleTable
WHERE (((MainSaleTable.CopyedRPList) In (SELECT [CopyedRPList] FROM
[MainSaleTable] As Tmp GROUP BY [CopyedRPList] HAVING Count(*)>1 ) And
(MainSaleTable.CopyedRPList)<>"Not yet entered"))
ORDER BY MainSaleTable.CopyedRPList;
The main field being CopyedRPList contains a text field and it appears that
when this field contains more than roughly 150 characters the problem occurs
(Remove the larger records and it works ok.)
I am trying to produce a report that displays any previous or more recent
sales than the sale currently being looked at. A subreport based on this
query is linked (master/child) via CopyedRPList. The report works fine
except when the report contains these larger entries? Running the query over
the whole 25,000 records causes the query to run to the end of the progress
bar, but then it stops and freezes.
Is there some maximum record length limit that I am somehow breaching (Field
set to 256)?
Any help would be welcome.
Thanks Andrew
the following query, freezes and I have to kill access.
SELECT DISTINCT MainSaleTable.CopyedRPList, MainSaleTable.CopyedTotalSP,
MainSaleTable.LastSaleDate
FROM MainSaleTable
WHERE (((MainSaleTable.CopyedRPList) In (SELECT [CopyedRPList] FROM
[MainSaleTable] As Tmp GROUP BY [CopyedRPList] HAVING Count(*)>1 ) And
(MainSaleTable.CopyedRPList)<>"Not yet entered"))
ORDER BY MainSaleTable.CopyedRPList;
The main field being CopyedRPList contains a text field and it appears that
when this field contains more than roughly 150 characters the problem occurs
(Remove the larger records and it works ok.)
I am trying to produce a report that displays any previous or more recent
sales than the sale currently being looked at. A subreport based on this
query is linked (master/child) via CopyedRPList. The report works fine
except when the report contains these larger entries? Running the query over
the whole 25,000 records causes the query to run to the end of the progress
bar, but then it stops and freezes.
Is there some maximum record length limit that I am somehow breaching (Field
set to 256)?
Any help would be welcome.
Thanks Andrew