user4804987
user4804987

Reputation:

Select TOP N not working in MS Access with parameter

In SQL Server, we use this sQL for set rowcount:

SET ROWCOUNT @top

or

select top (@top) * from Table 

How to use this query in MS Access SQL?

Upvotes: 2

Views: 869

Answers (1)

HansUp
HansUp

Reputation: 97100

Access does not support using a parameter for SELECT TOP. You must write a literal value into the text of the SQL statement.

Upvotes: 3

Related Questions