johnnylogistics
Technical User
I am relatively new to Access and need help with a query. I would like to display a row number for the results of my query. When using sql in Oracle, I use the "ROWNUM" expression. For example:
Select
order_no,
product_id,
order_qty
ROWNUM line_no
from
order_table
where order_no in ('123')
might display the following results:
Order_no Product_id Order_Qty LINE_NO
123 11111 2 1
123 22222 1 2
123 33333 1 3
How would I display the same results for LINE_NO in Access without using a pass through query. What would be the equivelant expression to ROWNUM in Oracle for access?
I am thinking it is a simple condition, however I can not find it in the help section of access.
Select
order_no,
product_id,
order_qty
ROWNUM line_no
from
order_table
where order_no in ('123')
might display the following results:
Order_no Product_id Order_Qty LINE_NO
123 11111 2 1
123 22222 1 2
123 33333 1 3
How would I display the same results for LINE_NO in Access without using a pass through query. What would be the equivelant expression to ROWNUM in Oracle for access?
I am thinking it is a simple condition, however I can not find it in the help section of access.