473,396 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Help creating a a numbered list

Hello,

I have a list of names ordered alphabetically. How can I make a report that adds a number next to each name? The Count() function will return a total count which is close but not exactly what I want.
example:

1. Alyssa
2. Brett
3. Cacie
4. Charlie

Thanks in advance for your help in this matter
Jan 16 '07 #1
7 3602
NeoPa
32,556 Expert Mod 16PB
Hello,

I have a list of names ordered alphabetically. How can I make a report that adds a number next to each name? The Count() function will return a total count which is close but not exactly what I want.
example:

1. Alyssa
2. Brett
3. Cacie
4. Charlie

Thanks in advance for your help in this matter
There is nothing in Access (or any RDBMS) which supports this concept.
However, if you define a VBA function which returns sequential numbers it can be made to work.
It would have to be called before the query is run and remember the last number returned.
Alternatively, you can do it in a report.
Jan 16 '07 #2
There is nothing in Access (or any RDBMS) which supports this concept.
However, if you define a VBA function which returns sequential numbers it can be made to work.
It would have to be called before the query is run and remember the last number returned.
Alternatively, you can do it in a report.
sorry, I was very unclear in my last post. I have a query that gives me an alphabetized list of people. I want to make a report that assigns a number to each person going from a-z.
Jan 16 '07 #3
NeoPa
32,556 Expert Mod 16PB
My answer would be the same. I don't see how this effects the question.
Jan 16 '07 #4
thank you for your input
Jan 16 '07 #5
nico5038
3,080 Expert 2GB
Place a new field in the report with as controlsource:
=1
Now go in the properties to the Data tab and set the Running Sum property to "Over all"

That's all.

Nic;o)
Jan 17 '07 #6
Place a new field in the report with as controlsource:
=1
Now go in the properties to the Data tab and set the Running Sum property to "Over all"

That's all.

Nic;o)
thanks, that's perfect. nice trick
Jan 17 '07 #7
NeoPa
32,556 Expert Mod 16PB
Sorry guys. I should have explained myself better in post #2 about the report. You've got a good answer now anyway :)
Jan 17 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Max Bentz | last post by:
How may I generate a numbered list (using <ol><li>, etc), which contains more than 1000 elements? My list is ok till 999, then it continues with 000, 001, 002, etc. Thanks for a tip Max
4
by: Kain0o0 | last post by:
Hello , thanks for any help in advance. Im writing some code for a c++ class and the proffessor wants us to implement a list template using arrays. I thought this would be an easy task but have...
13
by: na1paj | last post by:
here's a simple linked list program. the DeleteNode function is producing an infinit loop i think, but i can't figure out where.. #include <stdio.h> typedef struct { char *str; //str is a...
11
by: Siv | last post by:
Hi, I seem to be having a problem with a DataAdapter against an Access database. My app deletes 3 records runs a da.update(dt) where dt is a data.Datatable. I then proceed to update a list to...
1
by: Rahul | last post by:
Hi Everybody I have some problem in my script. please help me. This is script file. I have one *.inq file. I want run this script in XML files. But this script errors shows . If u want i am...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
1
by: macska | last post by:
Hi, I haven't coded anything in VB in years and I'm having trouble figuring out how to do the following: I want to randomly pick an item from a numbered list (text file), where one of the two...
6
by: James A. Donald | last post by:
In firefox, the following standards based css gives me a numbered definition list: dl {counter-reset: item1; } dt:before { counter-increment: item1; content: counter(item1) ". "; }
5
by: katie smith | last post by:
Here is the program I just started, The problem i am having is I'm trying to get it to load the image file Sand1 with eval(loader) = pygame.image.load(loader) because Loader is euqual to "Sand1" but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.