Database Objects
Hi-Integrity Systems
HomeVB6 Documentation › IDatabaseObjects.DistinctFieldName

IDatabaseObjects

IDatabaseObjects_DistinctFieldName As String

This function should return the field name that uniquely identifies each object within the collection. Typically, this is the field name of an identity or auto increment field. If the IDatabaseObjects_SubSet function has been implemented then the DistinctFieldName need only be unique within the subset not the entire table. The DistinctFieldName and KeyFieldName can be identical. This function should almost always be implemented.

Private Function IDatabaseObjects_DistinctFieldName() As String IDatabaseObjects_DistinctFieldName = "ProductID" End Function

This interface function/property is utilised by the following functions:
Object, ObjectSave, ObjectDelete, ObjectFromRecordset, ObjectFromFieldValues