Database Form Events

The Events tab page, allows you to assign a macro to certain events which occur in a database form.

이 λͺ…령을 μ‚¬μš©ν•˜λ €λ©΄...

Open context menu of a selected form element - choose Form Properties - Events tab.

Open Form Design toolbar, click Form Properties icon - Events tab.


이벀트λ₯Ό λ§€ν¬λ‘œμ™€ μ—°κ²°ν•˜λ €λ©΄ λ¨Όμ € μ΄λ²€νŠΈκ°€ λ°œμƒν•  λ•Œ μ‹€ν–‰ν•  λͺ¨λ“  λͺ…령이 ν¬ν•¨λœ 맀크둜λ₯Ό μž‘μ„±ν•©λ‹ˆλ‹€. 그런 λ‹€μŒ, 각 이벀트 μ˜†μ˜ ... λ²„νŠΌμ„ ν΄λ¦­ν•˜μ—¬ ν•΄λ‹Ή μ΄λ²€νŠΈμ— 이 맀크둜λ₯Ό ν• λ‹Ήν•©λ‹ˆλ‹€. 맀크둜λ₯Ό 선택할 수 μžˆλŠ” 맀크둜 ν• λ‹Ή λŒ€ν™” μƒμžκ°€ μ—΄λ¦½λ‹ˆλ‹€.

λ‹€μŒμ˜ 싀행은 μ‚¬μš©μžκ°€ μž„μ˜λŒ€λ‘œ ꡬ성할 수 μžˆμŠ΅λ‹ˆλ‹€. 즉, μ‚¬μš©μžλŠ” μ‚¬μš©μž μ •μ˜ λŒ€ν™” μƒμžλ₯Ό μ‚¬μš©ν•˜μ—¬ 싀행을 ν‘œμ‹œν•  수 μžˆμŠ΅λ‹ˆλ‹€:

  1. 였λ₯˜ λ©”μ‹œμ§€ ν‘œμ‹œ,

  2. (데이터 λ ˆμ½”λ“œμ˜) μ‚­μ œ κ³Όμ • 확인 ,

  3. 맀개 λ³€μˆ˜ 쿼리,

  4. 데이터 λ ˆμ½”λ“œ μ €μž₯μ‹œ μž…λ ₯ 검사.

예λ₯Ό λ“€μ–΄ 데이터 λ ˆμ½”λ“œλ₯Ό μ‚­μ œν•  λ•Œ "고객 xyzλ₯Ό 정말 μ‚­μ œν•˜μ‹œκ² μŠ΅λ‹ˆκΉŒ?"와 같이 "μ‚­μ œ 확인" μš”μ²­ λ©”μ‹œμ§€λ₯Ό ν‘œμ‹œν•  수 μžˆμŠ΅λ‹ˆλ‹€.

note

The events that are shown in the Events dialog cannot be edited directly. You can remove an event from the list by pressing the Del key.


μ–‘μ‹μ—μ„œ λ§€ν¬λ‘œμ™€ μ—°κ²°ν•  수 μžˆλŠ” λͺ¨λ“  μ΄λ²€νŠΈλŠ” λ‹€μŒκ³Ό κ°™μŠ΅λ‹ˆλ‹€.

λ ˆμ½”λ“œ μ‹€ν–‰ 이후에

The After record action event occurs directly after the current record has been changed.

λ ˆμ½”λ“œ λ³€κ²½ν•œ 후에

The After record change event occurs directly after the current record pointer has been changed.

λ ˆμ½”λ“œ μ‹€ν–‰ 전에

The Before record action event occurs before the current record or record set are changed. Return True when changing is allowed, otherwise False. For example, the linked macro can request confirmation in a dialog.

λ ˆμ½”λ“œ λ³€κ²½ν•˜κΈ° 전에

The Before record change event occurs before the current record pointer - SQL cursor - is changed. Return True when moving is allowed, otherwise False.

μƒˆλ‘œ λ‘œλ“œν•˜κΈ° 전에

The Before reloading event occurs before the form is reloaded. The data content has not yet been refreshed.

μ „μ†‘ν•˜κΈ° 전에

The Before submitting event occurs before the form data is sent. Returning True approves the submission, False stops it.

μ–Έλ‘œλ“œν•˜κΈ° 전에

The Before unloading event occurs before the form is unloaded; that is, separated from its data source.

μ—…λ°μ΄νŠΈν•˜κΈ° 전에

The Before update event occurs before the control content changed by the user is written into the data source. The linked macro can, for example, prevent this action by returning FALSE.

μ—…λ°μ΄νŠΈν•œ 후에

The After update event occurs after the control content changed by the user has been written into the data source.

μ›λž˜λŒ€λ‘œ μ„€μ •ν•˜κΈ° 전에

The Prior to reset event occurs before a form is reset. Returning True approves the reset, returning False cancels the operation.

λ‹€μŒ 쑰건 쀑 ν•˜λ‚˜κ°€ λ‚˜νƒ€λ‚  경우 양식은 λ‹€μ‹œ μ„€μ •λ©λ‹ˆλ‹€.

  1. μ‚¬μš©μžκ°€ μ›λž˜λŒ€λ‘œ λ²„νŠΌμœΌλ‘œ μ •μ˜λ˜μ–΄ μžˆλŠ” (HTML) λ²„νŠΌμ„ λˆ„λ¦…λ‹ˆλ‹€

  2. 데이터 원본에 μ—°κ²°λ˜μ–΄ μžˆλŠ” 양식에 λΉ„μ–΄ μžˆλŠ” μƒˆ λ ˆμ½”λ“œλ₯Ό λ§Œλ“­λ‹ˆλ‹€. 예λ₯Ό λ“€μ–΄ λ§ˆμ§€λ§‰ λ ˆμ½”λ“œμ—μ„œ λ‹€μŒ λ ˆμ½”λ“œ λ²„νŠΌμ„ λˆ„λ₯Ό 수 μžˆμŠ΅λ‹ˆλ‹€.

μ›λž˜λŒ€λ‘œ μ„€μ •ν•œ 후에

The After resetting event occurs after a form has been reset.

μ‚­μ œ 확인

The Confirm deletion event occurs as soon as data has been deleted from the form. Return True to allow row deletion, False otherwise. For example, the linked macro can request confirmation in a dialog.

였λ₯˜ λ°œμƒ

The Error occurred event is activated if an error occurs when accessing the data source. This applies to forms, list boxes and combo boxes.

맀개 λ³€μˆ˜ μ±„μš°κΈ°

The Fill parameters event occurs when the form to be loaded has parameters that must be filled out. For example, the data source of the form can be the following SQL command:

SELECT * FROM address WHERE name=:name

Here :name is a parameter that must be filled out when loading. The parameter is automatically filled out from the parent form if possible. If the parameter cannot be filled out, this event is called and a linked macro can fill out the parameter. Return True when the execution of the parametrized statement should continue, False otherwise.

λ‘œλ“œν•  λ•Œ

The When loading event occurs directly after the form has been loaded.

μƒˆλ‘œ λ‘œλ“œν•  λ•Œ

The When reloading event occurs directly after the form has been reloaded. The data content has already been refreshed.

μ–Έλ‘œλ“œν•  λ•Œ

The When unloading event occurs directly after the form has been unloaded; that is, separated from its data source.

Vetoable events

tip

Macros can interrupt event execution when they return a boolean value: True allows the execution of the event to continue and False stops the event execution.


The following events are interruptable by returning False:

Please support us!