ROWNUM and Access

G

Guest

Hi
I would like to generate an ID nr in the result of a SELECTstatement (Access DB)
In Oracle, the ROWNUM keyword does the job (SELECT ROWNUM as ID, Field1,... FROM Table) but in Access, it returns an error message
Does somebody know how to do it

Thank

Gilles
 
M

Michel Walsh

Hi,


You have either append the data into a temporary table (with an autonumber),
either to compute the rank of each record accordingly to some criteria (that
defines the postion of the record among the other records).


Hoping it may help,
Vanderghast, Access MVP


Gilles said:
Hi,
I would like to generate an ID nr in the result of a SELECTstatement (Access DB).
In Oracle, the ROWNUM keyword does the job (SELECT ROWNUM as ID,
Field1,... FROM Table) but in Access, it returns an error message.
 

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