V
vic
Hello,
I am porting an Access 2002 database to Access 2007 which has an option
group that turns on and off a filter. This works fine in Access 2002 and
filters as it's supposed to do. However, in Access 2007 when I select a
filter and then try to go to another record I get the error : "Update or
CancelUpdate without AddNew or Edit".
I know what it means that an update on a recordset was encountered without a
preceding Edit or Addnew but I did not do an update. I have traced the code
after the filter is set and there is no update. When I get the error I
cannot break into the code. If I include a Form_Error routine it is
throwing error code 3020.
Code for the filter:
If Me!dbFilter.Value = 1 Then
Me.Filter = "EntryNbr <> 0"
Me.FilterOn = True
Else
Me.FilterOn = False
End If
I would really appreciate some help because I'm stuck. Like I said this
database works fine in Access 2002.
Thank you very muych!
Vic
I am porting an Access 2002 database to Access 2007 which has an option
group that turns on and off a filter. This works fine in Access 2002 and
filters as it's supposed to do. However, in Access 2007 when I select a
filter and then try to go to another record I get the error : "Update or
CancelUpdate without AddNew or Edit".
I know what it means that an update on a recordset was encountered without a
preceding Edit or Addnew but I did not do an update. I have traced the code
after the filter is set and there is no update. When I get the error I
cannot break into the code. If I include a Form_Error routine it is
throwing error code 3020.
Code for the filter:
If Me!dbFilter.Value = 1 Then
Me.Filter = "EntryNbr <> 0"
Me.FilterOn = True
Else
Me.FilterOn = False
End If
I would really appreciate some help because I'm stuck. Like I said this
database works fine in Access 2002.
Thank you very muych!
Vic