J
|
Jane 1/17/2007 |
Hi, strOld = "select * from TableName where " & where set rsOld = CreateObject("ADODB.Recordset") rsOld.Open strOld, dbConnection if rsOld("FieldName")=dict("FieldName") then ' if record wasn't changed else ' if record was changed dict("ApprovalField")="" end if rsOld.Close : set rsOld = Nothing |
|
orit author 1/17/2007 |
Thanks a lot. strOld = "select * from release_approval where fileID = " & dict("fileID")
|
J
|
Jane 1/17/2007 |
If fileID field isn't on the EDIT and ADD page use where variable instead of dict("UserID"). strOld = "select * from release_approval where " & where
|
|
orit author 1/17/2007 |
Thanks a lot, The first solution works. Thanks |
|
orit author 1/17/2007 |
Oops, I didn't notice that the fields are reseted after any update, not only if the fileName field was updated. strOld = "select * from release_approval where " & where
|
![]() |
Sergey Kornilov admin 1/17/2007 |
Noboby will be able to answer this question but you. |
|
orit author 1/17/2007 |
What does the following code mean: where " & where
|
![]() |
Sergey Kornilov admin 1/17/2007 |
This code adds WHERE clause to SQL query. |