It's not behind a form. Field1 is one of the columns in the recordset i.e.
SELECT TOP 50 Table1.Field1, Table1. Field2, Table1.Field3
FROM Table1;
to
SELECT TOP (Table1.Field1) Table1.Field1, Table1. Field2, Table1.Field3
FROM Table1;
supposing every record has the same value in Field1.
Maybe I'm doing this the wrong way. What I want to do is select 5 percent of total records but I want to apply some criteria to the selection:-
i.e. if my table's total record count was 100 and I used a select query which used criteria to narrow down the selection to 80 records and I said top 5% then I would get 4 records (5% of 80) instead of what I want which is 5 records (5% of 100) does this make sense?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.