Ask Your Question
0

Base: How trigger a macro when I move to the next or previous record? [closed]

asked 2020-06-16 22:08:02 +0200

Marigold gravatar image

updated 2020-06-16 22:09:36 +0200

When I move from current record to next or previous or new record in form, I would like trigger a macro. I want fill some variables automatical when I press next, previous or new record button in navigation bar. Without extra button.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by Marigold
close date 2020-06-17 09:04:22.596226

1 Answer

Sort by » oldest newest most voted
0

answered 2020-06-16 22:26:01 +0200

Ratslinger gravatar image

Hello,

Should be able to do by attaching macro to After record change event (located on internal form properties). See -> Events

edit flag offensive delete link more

Comments

Tnx for answer. But this event work when I change record. I need trigger when I move from record to record without changing data.

Marigold gravatar imageMarigold ( 2020-06-16 23:23:30 +0200 )edit

Have tested and After record change does work when moving from record to record. After record action is the event which is done when there is data changed.

Please verify you are using the correct event. There are a number of events listed on the linked post given.

Edit:

Depending upon what you are trying to do, you may want/need to attach to both.

Ratslinger gravatar imageRatslinger ( 2020-06-17 00:12:41 +0200 )edit

You are totally right! After record change do exactly what I need. I didn't test this event because I was thinking: "Ok. After record change meaning event when record is changing...". Wrong :) Thaks a lot! :)

Marigold gravatar imageMarigold ( 2020-06-17 08:51:15 +0200 )edit

Question Tools

1 follower

Stats

Asked: 2020-06-16 22:08:02 +0200

Seen: 31 times

Last updated: Jun 16