Previous Topic

Next Topic

Inhoudsopgave

Book Index

OnNewRecord Event

Event Event OnNewRecord()

Description

Event that is fired when a new, empty record is created, but before the default values are set. This means after the user clicks the Insert button. Please note that because of the default values that are possibly present, it is recommended that you always use the AfterInsert Event.

Code Snippet

Sub OnNewRecord()

Record.FieldValues("CustomerNo") = InputBox("Enter a customer no.:")

End Sub