number series macro

J

jumpstartr

I want to assign a sequential series of numbers, 1,2,...n, to each
member of many sub-categories. I want to do this automatically with a
macro. For example, the numbers assigned to members of sub-category
"A" should begin with 1,2,3,4. However, later on, others will be added
and their numbers must start where the first numbers left off for
Category "A". I thought perhaps if I query the count of members in
each category, I might be able to set a starting and ending number for
each. I'm not good at VBA but will try if macro won't do. Thanks for
any help with this.
 
J

jumpstartr

can you not use the [autonumber] field in the base table?



jumpstartr said:
I want to assign a sequential series of numbers, 1,2,...n, to each
member of many sub-categories. I want to do this automatically with a
macro. For example, the numbers assigned to members of sub-category
"A" should begin with 1,2,3,4. However, later on, others will be added
and their numbers must start where the first numbers left off for
Category "A". I thought perhaps if I query the count of members in
each category, I might be able to set a starting and ending number for
each. I'm not good at VBA but will try if macro won't do. Thanks for
any help with this.- Hide quoted text -

- Show quoted text -

I need a different series for each category and now the AN in the base
table shows just one series of numbers for all members instead.
 
J

jumpstartr

can you not use the [autonumber] field in the base table?

Maybe a better way to ask is to explain a little more...

I have 1000+ categories (aka ProductFamilies) to manage at any one
time. At any time new categories are added while others are discarded.
Each year we select the best ProductFamilies to expand. We expand a
favored ProductFamily to between 1-99 new Selections (SelectionID). I
want to assign these new SelectionIDs a sequential number 1,2,3,4,..,
99 within each ProductFamily or category. (The number selected is
always less than 100.) We repeat the selection process anew for each
category, thereby creating Selections within Selections. The number
series starts over each Selection Cycle. The SelectionID (1-99) is
used along with the ProductFamilyID to create the Labeling code,
ProductFamilyID & ProductID.

Not sure if that helps.
Thanks for any help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top