To get the Vendor name just use vendTable.vendorName() method.
This retrieves the Party name related to a specific vendor
VendTable vendtable;
str name;
select vendtable
where vendTable.AccountNum == '123456'
;
name = vendTable.vendorName();