I am no longer getting an immediate error so that is great! However, things still don't seem to be working.
The original report accepts the following parameters with strStock being the key:
create procedure sp_DBR_quoting_add_strStock
@inintQuoteKey int,
@inLogin varchar(30),
@strStock varchar(50),
@inPrice decimal(16,4),
@instrLeadTime varchar(24),
@instrNotes varchar(80),
@inintQtyOrder int
Assigned to @strStock is an Autocomplete sp with the following query:
CREATE PROCEDURE sp_DBR_autocomplete_strStock
@strStock varchar(50)
AS
BEGIN
SELECT strStock, strDescription
FROM ST2005.dbo.IN_Master
--WHERE strStock LIKE inValue + '%';
WHERE strStock LIKE @strStock + '%';
Then, the @inPrice parameter looks like this:
create procedure sp_ADBR_select_price_level
@strStock varchar(50)
as
begin
SELECT curPrice1, curPrice2, curPrice3, curPrice4, curPrice5 FROM ST2005.dbo.IN_Master WHERE strStock = @strStock
However, when I select a value for strStock as part of the autocomplete, the second parameter never populates. All I see is "No parameters available"