Hi,
My problem is, the Update query process is painfully slow. Every time user updates a value to a column, it is taking more than 1 min ! I have to update a cerain field Yes/No based on some other field values from the same table. Below is my code: Please suggest some ideas.
Call openConnection
rs.Open "SELECT distinct ProjectStrategy.Strategy_No,ProjectStrategy.Strategy_Group,ProjectStrategy.D_Date,ProjectStrategy.Voice_Special_Infra,Project_Details.* FROM ProjectStrategy, Project_Details where " & _
"Project_Details.Hours_of_Ops in (" & Sstring & ") and Project_Details.Region in (" & regList & ") and Project_Details.Country_Offshore in (" & CtryList & ") and Project_Details.State in (" & StateList & ") and Project_Details.City_Offshore in (" & CList & ") and Project_Details.Facility in (" & FList & ") and Project_Details.Building in (" & BuildList & ") and Project_Details.Floor in (" & FloorList & ") and Project_Details.Wing in(" & WingList & ");", con, 1, 2
If rs!Auto_Redundancy = "No" Then
Set rs1 = New ADODB.Recordset
rs1.Open "select * from Project_Details where Serial_No=" & rs!Serial_No & ";", con, 1, 2
rs1!Auto_Red_Stat = "No"
rs1.Update
Set rs1 = Nothing
End If