Close run-time 2450 error message

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

lHow to close or ignore run-time 2450 error message?
I try with this code but message still comming.

If DataErr = 2450 Then
Response=acDataErrorContinue
End If
 
Igor said:
lHow to close or ignore run-time 2450 error message?
I try with this code but message still comming.

If DataErr = 2450 Then
Response=acDataErrorContinue
End If

Where are you putting that code? it needs to be in an error handler
within the function which is generating the error.

Do you know why the error is being generated (object not found) and are
anticipating its failure?

It might be better to solve the problem of why the error is generating
in the first place.
 
I putted this code in On Current event in first form.
Problem was be in CheckBox located in second form, closed.
CheckBox give condition for If Then Else.
I was resolved this problem on other way with code:

If CurrentProject.AllForms("Form Name").IsLoaded Then
If [Forms]![Form Name]![chkEditOk] Then
....
End If
End If

Thanks!
 
Back
Top