G
Guest
I have a query/append table process that takes historical data, ascending by
date and adds new unique records as they appear (the data eventually gets
removed from the original database source I query in approx. six months due
to an IT archive process). The problem is the append table auto numbering
tries to renumber the existing records before it assigns a number to the new
unique records.
For example, the existing append table has 100 records, you would think the
next unique record added would be 101 but it's not. The auto number tries to
renumber the existing 100 records and when it sees the initial unique 100
records exist, it "cancels" the auto number assignment - which it still sees
as that series of numbers as being used/assigned (thinks 101 to 200 have been
assigned even though they haven't) and it assigns 201 to the next new record.
I have to keep the data in the append table in it's current ascending by
date order, the records cannot be duplicated (primary key applied) and the
"auto" numbering must begin with #1 and ascend in order without any gaps.
Any insight on how this could be accomplished would be greatly appreciated.
Thank you in advance for your time and consideration.
Regards,
Mike
date and adds new unique records as they appear (the data eventually gets
removed from the original database source I query in approx. six months due
to an IT archive process). The problem is the append table auto numbering
tries to renumber the existing records before it assigns a number to the new
unique records.
For example, the existing append table has 100 records, you would think the
next unique record added would be 101 but it's not. The auto number tries to
renumber the existing 100 records and when it sees the initial unique 100
records exist, it "cancels" the auto number assignment - which it still sees
as that series of numbers as being used/assigned (thinks 101 to 200 have been
assigned even though they haven't) and it assigns 201 to the next new record.
I have to keep the data in the append table in it's current ascending by
date order, the records cannot be duplicated (primary key applied) and the
"auto" numbering must begin with #1 and ascend in order without any gaps.
Any insight on how this could be accomplished would be greatly appreciated.
Thank you in advance for your time and consideration.
Regards,
Mike