Full Version: Create num column on-the-fly
UtterAccess Discussion Forums > Microsoft® Access > Access Queries
italia
Need to create a numerical column in a Select Query containing consecutive numbers starting from 1 to identify the current row. Cannot use the existing autonumber field cause is full of holes.

<cfquery name="getFeedBack" datasource="#db#">
SELECT f.*, ........... as cur_row
FROM feedback f
WHERE f.f_userId = #qGetUser.userId#
ORDER BY f_date asc
</cfquery>

Thanks for Helping
kenick
Take a look at this post.
italia
Thank you very much. Like a charm!
kenick
Glad it helped.
JayNoelOlimpo
Thanks for that thread ken.cool.gif Another addition to my archives.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.