C
|
clig 1/30/2007 |
Function BeforeEdit(dict, where) |
G
|
Greg Cantwell author 1/30/2007 |
I appreciate the quick response Function BeforeEdit(dict, where) ' Parameters: ' dict - Scripting.Dictionary object. ' Each field on the Edit form represented as 'Field name'-'Field value' pair ' where - string with WHERE clause pointing to record to be edited '** Custom code **** ' put your custom code here dict("datetimeField") = Now() BeforeEdit = True ' set BeforeEdit to True if you like to proceed with editing this record ' set it to False in other case End Function |
![]() |
Sergey Kornilov admin 1/30/2007 |
Greg, |
G
|
Greg Cantwell author 1/30/2007 |
Sergey, Greg, you are not making things clear enough. When do you need to write a timestamp into datetime field? Suggested code snippet allows you to do this when record is updated. Is that what you looking for? |
![]() |
Sergey Kornilov admin 1/30/2007 |
Greg, Dim sSQL sSQL = "update MasterTableName set DateTimeField where MasterTableID = " & SESSION(strTableName & "_masterkey1") dbConnection.Execute sSQL
|