I tried this but get a syntax error as well. in the select statement...
DELETE tbl_CRS *
SELECT TOP 65500
FROM tbl_CRS
ORDER BY Name;
Try using a subquery in the WHERE clause:
DELETE *
FROM tbl_CRS
WHERE Name IN
(SELECT TOP 65500 Name
FROM tbl_CRS
ORDER BY Name);
BTW I'd avoid using Name as a column name. It could easily be confused with
the Name property of objects. Use something like CustomerName, EmployeeName
or whatever is appropriate to avoid any ambiguity.
Ken Sheridan
Stafford, England
> I tried this but get a syntax error as well. in the select statement...
>
[quoted text clipped - 17 lines]
> >
> >Cyl
John Spencer - 21 Mar 2006 13:19 GMT
Also if you want to get exactly 65500 (or less) records then I would
strongly suggest that you use your table's primary key in the order by and
as the field you are matching.
> Try using a subquery in the WHERE clause:
>
[quoted text clipped - 36 lines]
>> >
>> >Cyl