ADO.Net - Retrieving Pk of New Record In Access DB

Posted on 2006-04-14
Last Modified: 2010-04-23
I need to retrieve the Primary Key of a new record I am creating in an Access database using ADO.Net.

Can someone help me with the code I need to do this?

Question by:Sling_Blade
    LVL 44

    Accepted Solution

    Hello Sling_Blade,

    title: HOW TO: Retrieve the Identity Value While Inserting Records into Access Database By Using Visual Basic .NET

    hope this helps a bit

    Author Comment

    That's what I was looking for.


    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
    Introduction When many people think of the WebBrowser ( control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now