J
|
Jane 1/27/2009 |
Huff, str = "select max(FieldName) from TableName" Set rstmp = server.CreateObject("ADODB.Recordset") rstmp.open str,dbConnection Session("max_FieldName") = rstmp(0) rstmp.close set rstmp=nothing
|
H
|
huffharper author 1/27/2009 |
<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=37190&image=1&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' /> Huff, use Add page: Before process event to calculate new value. Here is a sample: Then use Session("max_FieldName") as default value on the "Edit as" settings dialog on the Visual Editortab. |