nitinbele18

How to get to the Domain from the field it is associated

Discussion created by nitinbele18 on Jul 26, 2011
Latest reply on Jul 27, 2011 by nitinbele18
Hello,
How to get the Domain from the Field associted with it.
The below code gives pDomian value as null
Public Sub ReadDomain(pTable As ITable, fldName As String, formCtrl As Object)

    Dim pField As IField
    Set pField = pTable.Fields.Field(pTable.Fields.FindField(fldName))

    Dim pDomain As IDomain
    Set pDomain = pField.Domain
..................



Lu

Outcomes