Retrieve The Autonumber Value In Access Using C#

From: Kabouter Smal (Kabouter_at_plop.com)
Date: 05/24/04


Date: Mon, 24 May 2004 16:59:39 +0200

It's driving me crazy.....
How do i get The Autonumber Value of a record that is just inserted?
And then specialy in de Visual Studio.Net 2003 envoirement?
With the sqlCommand or DataSet in c#?

Please give me some ideas???

Regards,
Jake



Relevant Pages

  • Re: ADO autInc
    ... MS Access will generate this autoinc value only after real post. ... With best regards, Mike Shkolnik ... It seems that AutoNumber is generated after post. ...
    (borland.public.delphi.database.ado)
  • Re: problems with autonumber fields
    ... look at CreateField DAO method in access help, to make autonumber - you need to set dbAutoIncrField attribute for a field. ... Best regards, ...
    (microsoft.public.access.modulesdaovba)
  • Adding records to MS Access 97 Tables using ASP.net
    ... Autonumber and the other two are text type for the last two days and now i am ... I dont have any queries in the table. ... Regards ... Three Cheers to Technet for the Help! ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Problem with AutoNumber
    ... If it's autonumber with its New Values property not set to random, I can't think of any possible reason why this should happen... ... then what you did took care of it. ... Regards, ...
    (microsoft.public.access.formscoding)