I am looping through a form that has me updating at least 14 records.
This is the script that I am using.
myDSN= theconnectionstrting
mySQL="UPDATE thaTable SET thaTable.ProdType = '" & DefaultType(m) & "', thaTable." & columnHdr & " = '" & DefaultEmp(M) & "' WHERE LineNum = " & Cint(m)& ""
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open(myDSN)
Conn.Execute(mySQL)
Conn.Close
My question is, can/should I open and close the connection outside the for loop or does it matter?
Thanks,
Lee