Hi
This is my first question.
I have a command button (SaveChangesBtn) that I wish to set focus to under certain circumstances. On many occasions the button works fine, but occasionally I get an unspecified run time error.
It is at the following point in the code
POpenIssuesRowID = r.Row - 1
Call GotoRecord(recordfound, POpenIssuesRowID)
SaveChangesBtn.Enabled = True
SaveChangesBtn.SetFocus
I have stepped through on numerous occasions but cannot see why it should set focus sometimes and not others, Any thoughts please
Regards
ernief
This is my first question.
I have a command button (SaveChangesBtn) that I wish to set focus to under certain circumstances. On many occasions the button works fine, but occasionally I get an unspecified run time error.
It is at the following point in the code
POpenIssuesRowID = r.Row - 1
Call GotoRecord(recordfound, POpenIssuesRowID)
SaveChangesBtn.Enabled = True
SaveChangesBtn.SetFocus
I have stepped through on numerous occasions but cannot see why it should set focus sometimes and not others, Any thoughts please
Regards
ernief