How do I define the ID field in an access table in VB.net to be incremented through the Visual Studi

Discussion in 'ASP .Net' started by minkokiss, Apr 23, 2007.

  1. minkokiss

    minkokiss Guest

    OK so the situation is the following. I added my access database to my
    ASP.net project (I am using VB.net) and the links work perfectly and I
    can pull up the data in the datagrid view and everything. However when
    i try to write a record to the database ( i am using the properties of
    the AccessDataSource in the Visual Studio 2005 GUI ) and link all the
    columns to a control on the ASP page I do not know how to tell the ID
    column in my main table to autoincrement and not use a control on the
    form for its value. COULD YOU PLEASE HELP!!! Feel free to e-mail me if
    you do not understand what I am looking for. Thank you
    minkokiss, Apr 23, 2007
    #1
    1. Advertising

  2. minkokiss

    Elmo Watson Guest

    Set the ID field, in the database to autonumbering

    --
    David Wier
    MVP/ASPInsider
    http://aspnet101.com
    http://aspexpress.com


    "minkokiss" <> wrote in message
    news:...
    > OK so the situation is the following. I added my access database to my
    > ASP.net project (I am using VB.net) and the links work perfectly and I
    > can pull up the data in the datagrid view and everything. However when
    > i try to write a record to the database ( i am using the properties of
    > the AccessDataSource in the Visual Studio 2005 GUI ) and link all the
    > columns to a control on the ASP page I do not know how to tell the ID
    > column in my main table to autoincrement and not use a control on the
    > form for its value. COULD YOU PLEASE HELP!!! Feel free to e-mail me if
    > you do not understand what I am looking for. Thank you
    >
    Elmo Watson, Apr 23, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Todd
    Replies:
    2
    Views:
    451
    Joe Smith
    Jul 22, 2004
  2. N. Demos
    Replies:
    4
    Views:
    466
    N. Demos
    Oct 13, 2004
  3. =?Utf-8?B?cG11ZA==?=

    counter value not incremented !!!

    =?Utf-8?B?cG11ZA==?=, Jan 24, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    358
    RadekP
    Jan 24, 2005
  4. John Smith
    Replies:
    7
    Views:
    448
    Vimal Aravindashan
    Oct 17, 2005
  5. Peter K
    Replies:
    2
    Views:
    280
    Peter K
    May 29, 2008
Loading...

Share This Page