(Contents)(Previous)(Next)

Value(sField As String) = expr

Description: Sets the value of the field/column whose name matches the passed in sField string.
Syntax: object.Value(sField) = expr
Parameters:
object Required, the item
sField The field/column name
Remarks: The Value() method can be used to set the value of any field/column of the item. If the field/column value is accessible as a property of the item then it is more efficient to directly access the property value as opposed to calling this method. E.g. appt.Name = "Meeting" is more efficient than appt.Value("Name") = "Meeting". Value() should be used when a property call is not available for the required field. The Value() method can also set the value of custom fields.
Returns: Nothing
Example:
Set appts = user.Appointments

Set appt = appts.Add

appt.Value("Name") = "Meeting"

appt.Update


Next