The following piece of code is terribly slow in my app. How can I speed it up.
If Me.txtpartno = "" Then
MyPartName = Me.txtPartName
rstEst.Find "PartName = " & "'" & MyPartName & "'"
Else
MyPartno = Me.txtpartno
rstEst.Find "PartNo = " & "'" & MyPartno & "'"
End If
I have used the rst.Find method elsewhere on bigger tables and it's not as slow.
If Me.txtpartno = "" Then
MyPartName = Me.txtPartName
rstEst.Find "PartName = " & "'" & MyPartName & "'"
Else
MyPartno = Me.txtpartno
rstEst.Find "PartNo = " & "'" & MyPartno & "'"
End If
I have used the rst.Find method elsewhere on bigger tables and it's not as slow.