A
AlanD
I've started getting an error 3020 (Update or CancelUpdate without AddNew or
Edit). I'm using DAO. I'm sure it worked before.
I'm not consciously using .edit, .update etc but perhaps it is implicit in
the general form handling.
The structure is that I have a form which displays/updates data from a
table. The form has a button ('home address') which calls a pop-up form,
again taking data from the same table and applying a filter to get the
required record. I think the problem is caused by attempting to change the
same record via both the main form and the pop-up.
The table holds a 'last changed' timestamp, which is displayed on the main
form. On the pop-up I put in code 'on update' to change
Forms("main form").[timestamp] = now
The error isn't totally repeatable, and I'm struggling to make a tiny
database which misbehaves to order.
My questions (at last!) are
- Am I looking in the right place?
- Are my problems caused with trying to update essentially the same
record via 2 different routes, perhaps with record locking complications?
- What should I be doing?
Thanks for any suggestions
Edit). I'm using DAO. I'm sure it worked before.
I'm not consciously using .edit, .update etc but perhaps it is implicit in
the general form handling.
The structure is that I have a form which displays/updates data from a
table. The form has a button ('home address') which calls a pop-up form,
again taking data from the same table and applying a filter to get the
required record. I think the problem is caused by attempting to change the
same record via both the main form and the pop-up.
The table holds a 'last changed' timestamp, which is displayed on the main
form. On the pop-up I put in code 'on update' to change
Forms("main form").[timestamp] = now
The error isn't totally repeatable, and I'm struggling to make a tiny
database which misbehaves to order.
My questions (at last!) are
- Am I looking in the right place?
- Are my problems caused with trying to update essentially the same
record via 2 different routes, perhaps with record locking complications?
- What should I be doing?
Thanks for any suggestions