A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Column for line numbers...



 
 
Thread Tools Display Modes
  #1  
Old March 10th, 2010, 05:34 PM posted to microsoft.public.access.queries
116[_2_]
external usenet poster
 
Posts: 6
Default Column for line numbers...

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

Thanks
David
  #2  
Old March 10th, 2010, 06:51 PM posted to microsoft.public.access.queries
ghetto_banjo
external usenet poster
 
Posts: 325
Default Column for line numbers...

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.
  #3  
Old March 10th, 2010, 06:51 PM posted to microsoft.public.access.queries
ghetto_banjo
external usenet poster
 
Posts: 325
Default Column for line numbers...

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.
  #4  
Old March 10th, 2010, 08:33 PM posted to microsoft.public.access.queries
116[_2_]
external usenet poster
 
Posts: 6
Default Column for line numbers...

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.
.

  #5  
Old March 10th, 2010, 09:13 PM posted to microsoft.public.access.queries
ghetto_banjo
external usenet poster
 
Posts: 325
Default Column for line numbers...

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/f...ain/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.
  #6  
Old March 10th, 2010, 10:12 PM posted to microsoft.public.access.queries
116[_2_]
external usenet poster
 
Posts: 6
Default Column for line numbers...

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/f...ain/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.
.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:17 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.