E
Elizabeth Swoope
I have an event that "reads" the contents of the first field in a table (the
key field) and creates values in two other fields based on the key field. (No
lectures on why this isn't a good idea, please. I have my reasons and it's a
small database.)
The event works fine if I tab out of the field (using an Exit event).
However, if I use it as an Exit event, when the table is opened, the cursor
is in the first field of the first records (as it should be), but I cannot
add a new record by clicking on the "add new record" button in the navigation
area at the bottom of the form. If I tab out of the first field, then I can
add a new record, but my cursor is not in the first field of the new record.
If I use a Lost Focus event, I have to click the "add new record" button
TWICE, but I can add a new record.
If I have no events, I can add a record the normal way, by clicking the "add
new record button" once.
Which one of the forty-kazillion events should I use so that 1) the proper
calculations are made when I exit the first field no matter how I choose to
exit it (tab or add new record or enter would be the most likely ways, but
someone might click somewhere in another record), and 2) I can add a record
to the end of the table by clicking the "add new record" button ONCE?
key field) and creates values in two other fields based on the key field. (No
lectures on why this isn't a good idea, please. I have my reasons and it's a
small database.)
The event works fine if I tab out of the field (using an Exit event).
However, if I use it as an Exit event, when the table is opened, the cursor
is in the first field of the first records (as it should be), but I cannot
add a new record by clicking on the "add new record" button in the navigation
area at the bottom of the form. If I tab out of the first field, then I can
add a new record, but my cursor is not in the first field of the new record.
If I use a Lost Focus event, I have to click the "add new record" button
TWICE, but I can add a new record.
If I have no events, I can add a record the normal way, by clicking the "add
new record button" once.
Which one of the forty-kazillion events should I use so that 1) the proper
calculations are made when I exit the first field no matter how I choose to
exit it (tab or add new record or enter would be the most likely ways, but
someone might click somewhere in another record), and 2) I can add a record
to the end of the table by clicking the "add new record" button ONCE?