I'm calling a stored proc in vb like this:
Code:
objConn.Execute ("SP_getMatch " & rs2!brok_no & ", " & rs2!lastname & ", " & rs2!contact_no & ", " & rs2!Firstname & "")
[\code]
When one of the fields being passed contains a period or a space, the record is truncated at that point. I'm trying to get vb to ignore spaces and periods.
Here is my stored proc:
[code]
CREATE PROCEDURE sp_GetMatch
(@cBrok_no int,@cLastname varchar(15),@cContact_no int,@cFirstName varchar(15)) as
begin
update office
set cust_no = @cContact_no
where Brok_no = @cbrok_no and
(contact like @cfirstname + " " + @clastname
or Contact like @cLastname + "%"
or contact like @cfirstname + '%' + @clastname
)
end
return (0)
[\code]