paulcedarhill
Technical User
Using Crystal 10 with a sql database in ODBC I need to be able to link to a table using a formula field.
I need to be able to print a sales rep's name from table.users that is read from one of 2 fields in table.contacts, contingent on the value of a different field for product line in table.contacts.
I have written an if statement to bring in the correct "rep", but now need to pull their name from the table to print in a letter.
Dim rep as string
IF {tblMemo_Details.fldCategory_Desc} = "Wall Coverings" Then rep = {tblMemos.fldWC_Rep} else rep = {tblMemos.fldAP_Rep}
formula = rep
Thanks in advance
I need to be able to print a sales rep's name from table.users that is read from one of 2 fields in table.contacts, contingent on the value of a different field for product line in table.contacts.
I have written an if statement to bring in the correct "rep", but now need to pull their name from the table to print in a letter.
Dim rep as string
IF {tblMemo_Details.fldCategory_Desc} = "Wall Coverings" Then rep = {tblMemos.fldWC_Rep} else rep = {tblMemos.fldAP_Rep}
formula = rep
Thanks in advance