J
Jason V
How do I fix this problem
Error when running Stored Procedure:
Syntax error converting the varchar value
'forms!switchboard!list15.Column(0)' to a column of data type int.
SP:
Alter Procedure ProvSelsp
@ProvID int = '[Forms]![Switchboard]![List15].[Column](0)'
AS
SELECT dbo.Providers.ID, dbo.Providers.LtName,
dbo.Providers.Middle, dbo.Providers.FrName,
dbo.Providers.Title, dbo.Providers.Suffix,
dbo.Providers.License, dbo.Providers.LicEffecDt,
dbo.Providers.LicST, dbo.Providers.LicTermDt,
dbo.Providers.SpecLic, dbo.Providers.SpecLicST,
dbo.Providers.SpecLicEffecDt, dbo.Providers.SpecLicTermDt,
dbo.Providers.Brdact, dbo.Providers.ReCred,
dbo.Providers.Comments, dbo.Providers.Termination,
dbo.Providers.Termcode, dbo.Providers.TermReCred,
dbo.ProvOff.Specialty, dbo.Providers.CountRegion
FROM dbo.Providers INNER JOIN
dbo.ProvOff ON dbo.Providers.ID = dbo.ProvOff.ProvId
WHERE dbo.Providers.ID = @ProvID
Can anyone tell me what i am doing wrong.
Error when running Stored Procedure:
Syntax error converting the varchar value
'forms!switchboard!list15.Column(0)' to a column of data type int.
SP:
Alter Procedure ProvSelsp
@ProvID int = '[Forms]![Switchboard]![List15].[Column](0)'
AS
SELECT dbo.Providers.ID, dbo.Providers.LtName,
dbo.Providers.Middle, dbo.Providers.FrName,
dbo.Providers.Title, dbo.Providers.Suffix,
dbo.Providers.License, dbo.Providers.LicEffecDt,
dbo.Providers.LicST, dbo.Providers.LicTermDt,
dbo.Providers.SpecLic, dbo.Providers.SpecLicST,
dbo.Providers.SpecLicEffecDt, dbo.Providers.SpecLicTermDt,
dbo.Providers.Brdact, dbo.Providers.ReCred,
dbo.Providers.Comments, dbo.Providers.Termination,
dbo.Providers.Termcode, dbo.Providers.TermReCred,
dbo.ProvOff.Specialty, dbo.Providers.CountRegion
FROM dbo.Providers INNER JOIN
dbo.ProvOff ON dbo.Providers.ID = dbo.ProvOff.ProvId
WHERE dbo.Providers.ID = @ProvID
Can anyone tell me what i am doing wrong.