Another way to assign a row number in a query is to use the DCount
function.
SELECT *, DCount("[ID]","[mytable]","[ID]<=" & [ID]) AS row_id
FROM [mytable]
WHERE row_id=15
More Related Contents:
- sql in ms-access [closed]
- Managing and debugging SQL queries in MS Access
- SQL multiple join statement
- How do I write a full outer join query in access
- What’s the difference between DoCmd.SetWarnings and CurrentDB.Execute
- How to do INSERT into a table records extracted from another table
- Multiple INNER JOIN SQL ACCESS
- How to simulate UNPIVOT in Access?
- Table-less UNION query in MS Access (Jet/ACE)
- Ms Access Query: Concatenating Rows through a query
- Access-SQL: Inner Join with multiple tables
- is there a group_concat function in ms-access?
- How do I implement pagination in SQL for MS Access?
- [] brackets in sql statements
- SQL to add column with default value – Access 2003
- Achieving ROW_NUMBER / PARTITION BY in MS Access
- Query for getting value from another record in same table and filter by difference greater than a gap threshold
- How can I implement SQL INTERSECT and MINUS operations in MS Access
- Lightweight SQL database which doesn’t require installation [closed]
- Convert String to Date in MS Access Query
- HOW TO SELECT PREVIOUS ROW VALUE? [duplicate]
- MSAccess – query to return result set of earliest rows with a unique combination of 2 columns
- How to save the result of a SQL query into a variable in VBA?
- How do I perform update query with subquery in Access?
- SQL Update woes in MS Access – Operation must use an updateable query
- Select query with date condition
- Does MS access(2003) have anything comparable to Stored procedure. I want to run a complex query in MS acceess
- Microsoft Access – Case Query
- How do I create a decimal field in Access with Alter Table?
- Escaping ‘ in Access SQL