Query Line Numbering

G

gcutter

I have a query that is pretty complicated that uses many other queries and
the final query needs to have the rows numbered like in Excel. SO if I have
200 records the numbering will start at 1 and end at 200. I have searched for
a couple hours and have not found a solution.

Any help would be appreciated
 
K

KARL DEWEY

Add this in the SQL. Substitute your table and field name --
(SELECT Count(*) FROM [ChangeRequests] As AA WHERE AA.[Dateopen] <=
[ChangeRequests].[Dateopen]) AS RowNum

Use the table that is the LEFT of the join.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top