What about trying Ubound( doc.GetItemValue( fieldname ) ) or putting the contents into an item and then getting the ubound on the item, i.e., set item = doc.GetFirstItem( fieldname ) ubound( item.Values ) Just wondering if that would produce a different result.