Results 1 to 4 of 4

Thread: [RESOLVED] Adding New Records Help

  1. #1

    Thread Starter
    Addicted Member charmedcharmer's Avatar
    Join Date
    Sep 2003
    Posts
    211

    Resolved [RESOLVED] Adding New Records Help

    Hi guys, I just need a quick help here. I know this already but I forgot how it is done.

    I need to add a new record on the table and at the same time I need to get the unique id of the newly added record. How do I do that? Im sorry for asking this, I just need this right away.

    Thanks in advanced.

    Note: I can't use the max() or top 1 something because there may be 2 persons trying to add a new record
    Last edited by charmedcharmer; Sep 17th, 2007 at 10:13 PM.
    C++ Programming is overwhelming.

    Dont let it overwhelm you or you'll fall into the oblivion of its perfection

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Adding New Records Help

    What type of database are you using?

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Adding New Records Help

    At the top of this forum is a sticky thread called FAQs/Tutorials, and you will probably find the answer in one of the first items: How can I get the auto-generated AutoNumber/Identity value for the record just added?

  4. #4

    Thread Starter
    Addicted Member charmedcharmer's Avatar
    Join Date
    Sep 2003
    Posts
    211

    Re: Adding New Records Help

    Thanks. sorry for not searching. I just dont know what terms to search
    C++ Programming is overwhelming.

    Dont let it overwhelm you or you'll fall into the oblivion of its perfection

Posting Permissions

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



Click Here to Expand Forum to Full Width