insertion problem

i have a table in access2003

when a new record is inserted into the table(from windows appln) , variable counter should incremented by 1

now the problem is

how to implement this and

where to store the counter variable in database



Answer this question

insertion problem

  • has2nk

    You need to set Autoincrement poperty of the field to True and it will work

  • PhoenixRises

    sir im in urgent requirement for this problem

    what is this IDENTITY field

    pls reply

    thanku


  • Urano

    > After record inserted, you could call SELECT SCOPE_IDENTITY() statement to get this value from SQL Server or SELECT @@IDENITY ina case of Access database

    Actually, SELECT @@IDENTITY is working very well for MSSQL Server database as well.


  • i-developer

    I believe you need to implement IDENITY field in your table and it will automatically increment on each new record. After record inserted, you could call SELECT SCOPE_IDENTITY() statement to get this value from SQL Server or SELECT @@IDENITY ina case of Access database

  • Sijin Joseph

    sir

    can u tell me how to implement this identify field in access database

    pls reply


  • insertion problem