S
scottpaul4000
I am trying to update a table by adding a sequence number that
increments by 1 but resets upon a change in Vendor Number. Here some
data:
VendorNumber Vendor Name Division
0001 Land Dev 81
0002 Martin's Systems 11
0002 Martin's Systems 30
003L Home Builders 05
003L Home Builders FA
003L Home Builders 12
Here's what I'm shooting for:
VendorNumber Vendor Name Division Seq
0001 Land Dev 81 1
0002 Martin's Systems 11 1
0002 Martin's Systems 30 2
003L Home Builders 05 1
003L Home Builders FA 2
003L Home Builders 12 3
So far I've tried and adapted various Count and DCount statements I've
found in this forum but the best I can get is a Sequence number that
continully grows or doesn't reset properly on a Vendor Number change.
Any help would be greatly appreciated.
Scott
increments by 1 but resets upon a change in Vendor Number. Here some
data:
VendorNumber Vendor Name Division
0001 Land Dev 81
0002 Martin's Systems 11
0002 Martin's Systems 30
003L Home Builders 05
003L Home Builders FA
003L Home Builders 12
Here's what I'm shooting for:
VendorNumber Vendor Name Division Seq
0001 Land Dev 81 1
0002 Martin's Systems 11 1
0002 Martin's Systems 30 2
003L Home Builders 05 1
003L Home Builders FA 2
003L Home Builders 12 3
So far I've tried and adapted various Count and DCount statements I've
found in this forum but the best I can get is a Sequence number that
continully grows or doesn't reset properly on a Vendor Number change.
Any help would be greatly appreciated.
Scott