Reputation: 12353
I have a table tblEmp
with a After Insert
data macro defined. However, the event is not working. what I am missing here?
Upvotes: 0
Views: 3021
Reputation: 107577
Simply move your logic to the BeforeChange
trigger which is the state before any record (new or existing) is saved. Your logic attempts to change field values in AfterInsert
which is after the save mode. Also, be sure to not include the table identifier, tblEmp, in referencing column name in macro:
In fact, had you clicked the Application Errors on status bar in lower right after your current attempt, the outputted system table indicates the issue since you are in read-only mode after inserting:
EditRecord failed because the default alias represents a record which is read only.
Upvotes: 2