sorry cause i have poor english.. 1) how to insert data in asp coding if the id is auto number? *is there is any key i have to do in my database? *Number of query values and destination fields are not the same.<--- what is the meaning ????????? i'm wrilly tension ....
if the field is auto number then you do not set a value otherwise you will get an error. Leave the field blank it will auto number
how to catch the data means (id=autonumber) pnto the form automatically ? to upadate / delete process
if you are using an identifier field in MS SQL then use: SELECT SCOPE_IDENTITY() AS theid; to return the new id So your command would look something like: "INSERT INTO TableName (column1, column2) VALUES (value1, value2); SELECT SCOPE_IDENTITY() AS theid;"
Number of query values and destination fields are not the same.<--- what is the meaning ????????? This means that your SQL statement either has more/less values to insert than columns in the database. SQL may appear as this INSERT INTO table (column1, column2, column3) VALUES (column1, column2 column3) Notice that there is a missing comma after column2. This is an easy mistake to make. Try writing the SQL string to HTML with a response.write(strSQL) response.end This will allow you to evaluate your SQL