J
Jeff via AccessMonster.com
I have a couple of SELECT statements in my frontend that I'm trying to
convert over to SP but I'm having some problems with my nvarchar data type.
Here's my SP:
PROCEDURE SP_SearchLastName
@GetLastName nvarchar
AS
SELECT * FROM Cases
WHERE [Last Name] LIKE @GetLastName
When I run this code with the name "Stewart" I get one record returned that
is not correct.
However, when I run the SELECT statement below on the frontend I get 6
correct records returned:
"SELECT * FROM dbo.Cases WHERE dbo.Cases.[Last Name] LIKE '" & StrLastName
&"'"
convert over to SP but I'm having some problems with my nvarchar data type.
Here's my SP:
PROCEDURE SP_SearchLastName
@GetLastName nvarchar
AS
SELECT * FROM Cases
WHERE [Last Name] LIKE @GetLastName
When I run this code with the name "Stewart" I get one record returned that
is not correct.
However, when I run the SELECT statement below on the frontend I get 6
correct records returned:
"SELECT * FROM dbo.Cases WHERE dbo.Cases.[Last Name] LIKE '" & StrLastName
&"'"