Column for line numbers...

  • Follow


Can an expression in a column be used to generate line numbers? 1, 2, 3, etc.

Thanks
David
0
Reply Utf 3/10/2010 5:34:02 PM

Gotta ask, why do you want them?   There are often questions on this
forum where people are trying to use a database like an excel
spreadsheet, and they are very different things.
0
Reply ghetto_banjo 3/10/2010 6:51:34 PM


Gotta ask, why do you want them?   There are often questions on this
forum where people are trying to use a database like an excel
spreadsheet, and they are very different things.
0
Reply ghetto_banjo 3/10/2010 6:51:59 PM

Just a quick way of getting number of lines with out creating a report.  For 
this project, really don't need a report.

David

"ghetto_banjo" wrote:

> Gotta ask, why do you want them?   There are often questions on this
> forum where people are trying to use a database like an excel
> spreadsheet, and they are very different things.
> .
> 
0
Reply Utf 3/10/2010 8:33:02 PM

if you just need a count of total number of records, you can use the
DCount function:

i.e.

DCount("*", "tablename")

or see this link for more info on the syntax:
http://www.techonthenet.com/access/functions/domain/dcount.php


One of many reasons you want to avoid assigning line numbers to
records is if you delete a record in the middle, none of the other
line numbers will update.
0
Reply ghetto_banjo 3/10/2010 9:13:44 PM

Thanks for the assist.  Its actually number of lines in the query.

116

"ghetto_banjo" wrote:

> if you just need a count of total number of records, you can use the
> DCount function:
> 
> i.e.
> 
> DCount("*", "tablename")
> 
> or see this link for more info on the syntax:
> http://www.techonthenet.com/access/functions/domain/dcount.php
> 
> 
> One of many reasons you want to avoid assigning line numbers to
> records is if you delete a record in the middle, none of the other
> line numbers will update.
> .
> 
0
Reply Utf 3/10/2010 10:12:01 PM

5 Replies
224 Views

(page loaded in 1.691 seconds)

Similiar Articles:
















7/26/2012 1:40:05 AM


Reply: