How to retrieve all vendors list from table dbo.Vendor including the three/four letter company id ( dbo.Company.CpnyId ) ?
Basically i cannot find any joining coloumn to get all vendors for a given company id.
How to retrieve all vendors list from table dbo.Vendor including the three/four letter company id ( dbo.Company.CpnyId ) ?
Basically i cannot find any joining coloumn to get all vendors for a given company id.
Another idea is to join vendors.vendid with APHist.vendid and filter for current year and APHist.ytdpurch>0.
The result is a record for each company each vendor was paid from.
Vendors are not company specific. Depending on what you need the info for - you could link to APDoc on vendid and see which cpnyid has apdoc records for the vendor or possibly if your users are company specific you could look at the crtd_user for the vendors.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,570 Super User 2024 Season 2
Martin Dráb 228,683 Most Valuable Professional
nmaenpaa 101,148