+ Reply to Thread
Results 1 to 2 of 2

How can i create sequential id

  1. #1
    Registered User
    Join Date
    02-26-2009
    Location
    India
    MS-Off Ver
    Access
    Posts
    69

    How can i create sequential id

    Hi,

    I need to create an id for each new record. I have four tables that each contain information about a different type of customer.

    I need the ids to be sequential across all of the tables. For example, if the last id assigned was xyz-12-001, the next id, no matter which table it is for, needs to be xyz-12-002.

    The "xyz" will be the same for every id and the "12" is the last two digits of the year. The last 3 digits need to increase by 1 with each new id.

    Can anyone help me with this??

  2. #2
    Forum Administrator ExlGuru's Avatar
    Join Date
    03-17-2009
    Location
    India
    MS-Off Ver
    2003,2007
    Posts
    222

    Re: How can i create sequential id

    May this be helpful for you try once:

    This code is used to create a sequential id with format you wants:

    Please Login or Register  to view this content.
    ExlGuru

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1