K
Kenny-Z
Hi group,
I have a class module in an Access app that has been working fine for
years; now all it does is throw an error at a call to InStrRev() (3rd
line of function below). The code compiles fine, InStrRev() appears in
the object browser. What the bloody heck can be wrong? InStr() works
fine. Thanks for any help...
Private Sub GetDatePartPositions()
strCurrentText = txtDateBox.Text
intDayPosition = InStr(1, strCurrentText, "/")
intYearPosition = InStrRev(strCurrentText, "/")
End Sub
I have a class module in an Access app that has been working fine for
years; now all it does is throw an error at a call to InStrRev() (3rd
line of function below). The code compiles fine, InStrRev() appears in
the object browser. What the bloody heck can be wrong? InStr() works
fine. Thanks for any help...
Private Sub GetDatePartPositions()
strCurrentText = txtDateBox.Text
intDayPosition = InStr(1, strCurrentText, "/")
intYearPosition = InStrRev(strCurrentText, "/")
End Sub