Returns a reference to the fields of the current record.
Read-only property
Set variable = object.Fields |
Use the Fields property to reference the fields of the current record in an Edit Form. This allows you to access fields that are not necessarily bound to any controls on the form.
Set Time and Date Attribute Example
Sets the Time and Date attributes of the shapefile to the current system date and time.
Set Time and Date Attribute Example (VBScript) | ![]() |
---|---|
Sub InitializeAttributes 'Get a reference to the form Dim pForm Set pForm = ThisEvent.Object 'Set the Time and Date attributes with the current system time/date pForm.Fields("Time").Value = FormatDateTime(Now,vbLongTime) pForm.Fields("Date").Value = FormatDateTime(Now,vbShortDate) 'Free resources Set pForm = Nothing End Sub |