Print Selection in Embed code does not recognize Report Procedure

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'
elsif Cus:Costcode = 'Subcontractor'

Are the report procedure declared in the same APP as the calling procedure?
If so, then got to the Calls tab of the calling procedure and select the reports.

If they are in a different APP, then they need to be added as external procedures first.


I appreciate you quick reply. Selecting the two reports on the call tab did the trick.