![]() |
Sergey Kornilov admin 8/21/2006 |
You can use AfterAdd event and the following SQL query: select max(RecordID) from TableName
|
B
|
bburden author 8/21/2006 |
Sergey, I tried the below SQL and I got a page can not be displayed. I enclosed my actual sql. |
J
|
Jane 8/21/2006 |
You need to execute your query and then display the result: Sub AfterAdd() str = "select max(tkt_id) as mx from ticket_Table1" Set rsTemp = server.CreateObject("ADODB.Recordset") rsTemp.open str, dbConnection Response.Write rsTemp("mx") End Sub
|
B
|
bburden author 8/21/2006 |
Jane, thanks for your help. I have been and is still learing ASP. Thanks for the link. |