I have a MS Access 2003 database with a table called product1
with a Primary key named Product Code
. There is no auto id column.
I have used this sql to do the custom data paging.
SELECT *
FROM (
SELECT Top 1 -- = PageSize
*
FROM
(
SELECT TOP 1 -- = StartPos + PageSize
*
FROM product1
ORDER BY product1.[Product Code]
) AS sub1
ORDER BY sub1.[Product Code] DESC
) AS clients
ORDER BY [Product Code]
Now my problem is Search. When I search for something on the database table and point it.
How can I make sure still paging works fine?