Hi All
Access 2002/2007
WunXPPro
I have an edit button which uses Screen.PreviousControl to determine what needs to be edited.
My code fails when screen.PreviousControl does not exist... Anyone know how to test for the existence of it please?
So far I've tried:
If Screen.PreviousControl Is Nothing Then
MsgBox "No Field Selected - Edit Request Ignored"
If isNull(Screen.PreviousControl) Then
MsgBox "No Field Selected - Edit Request Ignored"
even...
If isEmpty(Screen.PreviousControl) Then
MsgBox "No Field Selected - Edit Request Ignored"
All fail with a 2467 error?
Thanks
Access 2002/2007
WunXPPro
I have an edit button which uses Screen.PreviousControl to determine what needs to be edited.
My code fails when screen.PreviousControl does not exist... Anyone know how to test for the existence of it please?
So far I've tried:
If Screen.PreviousControl Is Nothing Then
MsgBox "No Field Selected - Edit Request Ignored"
If isNull(Screen.PreviousControl) Then
MsgBox "No Field Selected - Edit Request Ignored"
even...
If isEmpty(Screen.PreviousControl) Then
MsgBox "No Field Selected - Edit Request Ignored"
All fail with a 2467 error?
Thanks