Hello,
In Accpac 5.6 I use the code below to find the header comment of a PO.
Is there any way to make this faster because right now it's just starting from the last PO and working it's way up which can take a long time?
In Accpac 5.6 I use the code below to find the header comment of a PO.
Is there any way to make this faster because right now it's just starting from the last PO and working it's way up which can take a long time?
Code:
Function SearchHeaderComment(strHeaderComment)
'get PO header comment
POPOR2header.GoBottom
Do
If txtPO.Text = POPOR2headerFields("PONUMBER") Then
strHeaderComment = POPOR2headerFields("COMMENT")
Exit Do
End If
Loop While POPOR2header.GoPrev
End Function