Trying to link between AR_CustomerDocuments and AR_CustomerDocumentContacts but many of the records have the Document as all upper case in one table and mixed case in the other table, and is therefore missing some of the contact records. I am trying to use a SQL Command, using the SQL from the Crystal report built on the tables.
FROM {oj "AR_CustomerDocuments" "AR_CustomerDocuments" LEFT OUTER JOIN "AR_CustomerDocumentContacts" "AR_CustomerDocumentContacts" ON (("AR_CustomerDocuments"."ARDivisionNo"="AR_CustomerDocumentContacts"."ARDivisionNo") AND ("AR_CustomerDocuments"."CustomerNo"="AR_CustomerDocumentContacts"."CustomerNo")) AND ("AR_CustomerDocuments"."Document"="AR_CustomerDocumentContacts"."Document")}
tried changing the last line to:
UPPER(("AR_CustomerDocuments"."Document")=UPPER("AR_CustomerDocumentContacts"."Document"))}
also tried UCS and TOUPPER - same results: "failed to retrieve data from database"
What is the. correct PVX ODBC syntax for this?
------------------------------
Phil McIntosh
Friendly Systems
------------------------------