Skip to Content
author's profile photo Former Member
Former Member

Address of Business Partner

Hi

I want to print the address of Default Contact person of Business partner

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2012 at 06:46 PM

    Try:

    SELECT T0.CardCode, T0.CardName,T1.Address

    FROM OCRD T0

    Inner join ocpr t1 on t1.name =t0.CntctPrsn

    WHERE T0.[CardCode] = '[%0]'

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2012 at 04:03 PM

    Hi,

    Do you want have a list or print on certain documents?

    Thanks,

    Gordon

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 06, 2012 at 12:34 AM

    Hi Sunny Brar,

    Please try this:

    SELECT T0.[CardCode], T0.[CntctPrsn], T1.[Address], T1.[Address2], T1.[Address3], T1.[Street], T1.[County] FROM OCRD T0 INNER JOIN CRD1 T1 ON T0.CardCode = T1.CardCode WHERE T0.[CardCode] = [%0]

    Thanks & Regards,

    Nagarajan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2012 at 04:34 AM

    HI,

    Try this

    SELECT T0.[CardCode], T0.[CntctPrsn], T1.[Address], T1.[Street], T1.[County] FROM OCRD T0 INNER JOIN CRD1 T1 ON T0.CardCode = T1.CardCode WHERE T0.[CardCode] = [%0]

    Regards,

    Prasad

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.