|
Function BeforeAdd(dict)
'
Parameters:
' dict - Scripting.Dictionary object.
'
Each field on the Add form represented as 'Field name'-'Field value' pair
'********** Insert a record into another table ************
dal.TableName.Field1 = Value1
dal.TableName.Field2 = Value2
dalTableName.Add()
BeforeAdd = True
' set BeforeAdd to True if you like to proceed with adding new record
' set it to False in other case
End
Function |