Table to track changes in another table |
12/11/2008 2:42:13 PM |
ASPRunnerPro General questions | |
I
Inter1908 author
Hi all,
|
|
J
|
Jane 12/12/2008 |
Hi, Set rstmp = server.CreateObject("ADODB.Recordset") Set rstmp2 = server.CreateObject("ADODB.Recordset") 'select location str = "select Location from Inventory where Item=" & dict("Item") rstmp.open str,dbConnection 'select destination str2 = "select destination from Moves where MasterKey=" & dict("DetailKey") rstmp2.open str2,dbConnection 'compare location and destination and update location field if needed if rstmp("Location")<>rstmp2("destination") then dbConnection.Execute "update Inventory set Location='" & rstmp2("destination") & "' where Item=" & dict("Item") end if rstmp.close set rstmp=nothing rstmp2.close set rstmp2=nothing |
I
|
Inter1908 author 12/12/2008 |
Thanks Jane for your fast answer, |