Dear All,
I need ur help regarding calling the SQL procedure given below. I need to asign the value "Amount" to a new variable call "SalaryWages". When I executed this procedure using this command below but How can you assign that amount to the new variable- ACMEERP.Execute "exec sp_GetLabourRate"
CREATE PROCEDURE sp_GetLabourRate AS
SELECT sum( AC_OHTYPEDET.total_value) AS AmountFROM AC_OHTYPE INNER JOIN AC_OHTYPEDET ON AC_OHTYPE.ohtype_code = AC_OHTYPEDET.ohtype_codeWHERE (AC_OHTYPE.ohsubcat_code = 'DL')GO