A
Al Russcol
Hi All,
I am upgrading an Access 2.0 application to 2000 and have
a feature that does not work for properly.
In the original app, each control runs code triggered by
the "On Key Up" event to see if the record is dirty. If
so, the record movement is disabled and the user must
choose to save or cancel changes.
This works as expected in all but one case. When a
controls data is highlighted, (not edit mode) if the users
presses the "Delete" key, data is deleted but the it seems
that the event is not triggered and the user can change
records thereby unintentionally saving changes. Touching
any key thereafter, (even the delete key) triggers the
event with the expected behaviour. I tried the "On Key
Down" and "On Key Press" events with the same results.
Possibly this is related to being in edit mode within the
control but I am stumped. This never came up when running
on 2.0 but I do not have an easy way to check this anymore.
I searched the knowledge base plus help and found nothing
about this problem but perhaps someone out there has run
into this before or has a suggestion.
There is always the "Before Update" event but I would
prefer not to change the way this works and I am very
curious why the delete key does not trigger the event. Is
this behaviour by design?
Thanks,
alr
I am upgrading an Access 2.0 application to 2000 and have
a feature that does not work for properly.
In the original app, each control runs code triggered by
the "On Key Up" event to see if the record is dirty. If
so, the record movement is disabled and the user must
choose to save or cancel changes.
This works as expected in all but one case. When a
controls data is highlighted, (not edit mode) if the users
presses the "Delete" key, data is deleted but the it seems
that the event is not triggered and the user can change
records thereby unintentionally saving changes. Touching
any key thereafter, (even the delete key) triggers the
event with the expected behaviour. I tried the "On Key
Down" and "On Key Press" events with the same results.
Possibly this is related to being in edit mode within the
control but I am stumped. This never came up when running
on 2.0 but I do not have an easy way to check this anymore.
I searched the knowledge base plus help and found nothing
about this problem but perhaps someone out there has run
into this before or has a suggestion.
There is always the "Before Update" event but I would
prefer not to change the way this works and I am very
curious why the delete key does not trigger the event. Is
this behaviour by design?
Thanks,
alr