I have a browse window that I want a single print button for that will select between two separate reports based on the value of a of an entry field.
I am looking for embed code that will allow me to add to the Accept source for that button.
I have tried the following but Clarion does not recognize the report names.
If Cus:CostCode = 'purchase'
printpurchase()
elsif Cus:Costcode = 'Subcontractor'
printsubcontract()
end