Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 Select and create incremental value

Author  Topic 

lmnorms1
Starting Member

7 Posts

Posted - 2008-05-16 : 15:46:09
Hello,
I am selecting information from a table for agent export. I want to auto increment a value for the export.

So:
Select agentTable.Agentname as AgntNme
, "4000" as AgntID
From agentTable
;

The agent ID is what I want to autonumber starting at 04000. How do I accomplish so that the next agent gets 04001 and so on.

The above statement works but all agents get the same ID number.

Thank you for any advice.
Lmnorms1
   

- Advertisement -