B
bwion
Hey All,
I have a listbox whose rowsource is base on a select query and is ordered by
some of the variables in that query. I want another "column" in my list box
that has a number from 1 to number of items in listbox. Here is an example
_Number___Customer___Item___Quant___
| 1 Jane Doe Dog 2 |
| 2 Jane Smith Cat 1 |
| 3 John Smith Fish 12 |
| |
As you can see the data is ordered by the Customer. So I want to assign
incremental numbers based on my query. So, for example, if I add the name
"Jane Gore" and run a requery, I want it to redo the numbers so that they are
in order of the Customer (i.e. Jane Doe is #1, Jane Gore is #2, Jane Smith is
#3, and John Smith is #4). I have tried a couple things with count but
nothing is working quite right. Any thoughts or suggestions? Thanks in
advanced.
Ben Wion
I have a listbox whose rowsource is base on a select query and is ordered by
some of the variables in that query. I want another "column" in my list box
that has a number from 1 to number of items in listbox. Here is an example
_Number___Customer___Item___Quant___
| 1 Jane Doe Dog 2 |
| 2 Jane Smith Cat 1 |
| 3 John Smith Fish 12 |
| |
As you can see the data is ordered by the Customer. So I want to assign
incremental numbers based on my query. So, for example, if I add the name
"Jane Gore" and run a requery, I want it to redo the numbers so that they are
in order of the Customer (i.e. Jane Doe is #1, Jane Gore is #2, Jane Smith is
#3, and John Smith is #4). I have tried a couple things with count but
nothing is working quite right. Any thoughts or suggestions? Thanks in
advanced.
Ben Wion