G
Guest
Hello, I've an interesting problem. I'm using access 2002 SP3
I have a form which displays all the records in a table, with all sorts
of filtering options and sorting available for the user..There is one value
field which the user can update..however they must update this field via
another form - which pops up when they click on the field.
In this form they can modify the value using either an increment or a new
value. Plus there is a comment field. The comment is logged into an audit
table with the primary key field values and the user and date and time.
This all works fine..except when I start two instances of the database.
Then I cannot save the changes to the form. I get the error "save action
cancelled".
I have stripped away the audit log code. same problem. I have removed the
onClick code in the main form...and made the change directly to the value on
the main form. this works. I can update the values , and the change is
reflected in the other instance.
This "editing form" as I call it..is based on the same table. with some
dlookup fields on it. and the code to do the save without the audit is very
basic...
sub Onokclick()
docmd.save
docmd.close
end sub
the form properties is allow everything edits, deletions, additions etc..
dynaset and editedrecord for locking.
the form is opened with the acformedit keyword.
The problem occurs with any record, even with different records in the
two instances.
I've been able to get around it by updating the recordsetclone. But still
wonder why it doesn't work as designed. This most likely would have worked
fine in Access 97.
Any clues as to where I'm going wrong with this form?
Elvis
I have a form which displays all the records in a table, with all sorts
of filtering options and sorting available for the user..There is one value
field which the user can update..however they must update this field via
another form - which pops up when they click on the field.
In this form they can modify the value using either an increment or a new
value. Plus there is a comment field. The comment is logged into an audit
table with the primary key field values and the user and date and time.
This all works fine..except when I start two instances of the database.
Then I cannot save the changes to the form. I get the error "save action
cancelled".
I have stripped away the audit log code. same problem. I have removed the
onClick code in the main form...and made the change directly to the value on
the main form. this works. I can update the values , and the change is
reflected in the other instance.
This "editing form" as I call it..is based on the same table. with some
dlookup fields on it. and the code to do the save without the audit is very
basic...
sub Onokclick()
docmd.save
docmd.close
end sub
the form properties is allow everything edits, deletions, additions etc..
dynaset and editedrecord for locking.
the form is opened with the acformedit keyword.
The problem occurs with any record, even with different records in the
two instances.
I've been able to get around it by updating the recordsetclone. But still
wonder why it doesn't work as designed. This most likely would have worked
fine in Access 97.
Any clues as to where I'm going wrong with this form?
Elvis