I need to know how to pass character variables using dbr.report
I’m passing a customer name into a stored procedure so I can add a new record into my table
Main procedure
CREATE PROCEDURE sp_DBR_CustomerRebateEdit
(inCustomer VARCHAR(40))
BEGIN
select 'dbr.title', concat('Enter a new rate for ', inCustomer);
select 'dbr.report', 'sp_DBR_DBR_Add_New_Rebate', 'popup', 'ID=1', 'Customer=inCustomer';
select 'dbr.button', 'New Rebate Rate';
select CustomerCode as 'Customer', RR_Index as 'Index No', WEEE_Cat as 'Category', (Rate / 100) as 'Rate (£ per Tonne)'
from RebateRate
where (inCustomer = CustomerCode)
order by WEEE_Cat;
END
inCustomer is selected from a drop list when the report first runs..
And am getting the following error message..
Error in dbr.report call sp_DBR_DBR_Add_New_Rebate parameter (Customer=inCustomer).
Reference not a number.
Any help welcome!