M
Max
I am trying to track down why the below code runs slowly(not my code )).
It works ok with one user, but with more it is very slow (30-60secs):
This is updating the same row every time. So forgetting the error handling,
as this module does, is it because this row is not released? If so can i set
it so that it is released? This is A97, thanx
Dim strSQL As String
If Len(Trim(strPO)) > 0 Then
strSQL = "UPDATE [tblCurrentUsers] SET [PurchaseOrderNo] = '" &
strPO & "' WHERE [UserName]='" & CurrentUser() & "'"
On Error Resume Next
Debug.Print "executed: " & strSQL
CurrentDb.Execute (strSQL)
On Error GoTo 0
End If
It works ok with one user, but with more it is very slow (30-60secs):
This is updating the same row every time. So forgetting the error handling,
as this module does, is it because this row is not released? If so can i set
it so that it is released? This is A97, thanx
Dim strSQL As String
If Len(Trim(strPO)) > 0 Then
strSQL = "UPDATE [tblCurrentUsers] SET [PurchaseOrderNo] = '" &
strPO & "' WHERE [UserName]='" & CurrentUser() & "'"
On Error Resume Next
Debug.Print "executed: " & strSQL
CurrentDb.Execute (strSQL)
On Error GoTo 0
End If