I want to prevent users from entering a product if it already exist in the database. So I used demo 12 as my guide to create a form completion event however; it do not appear the steps I have followed is accomplishing my goal. Below you will find the store procedure query and the stored procedure call. What am I doing wrong?
This is my stored procedure
SELECT COUNT(*) As IsValid FROM tbl_Platform WHERE PlatformName != @PlatformName
I also tried changing the stored procedure query to the following variations, but no luck.
SELECT COUNT(*) As IsValid FROM tbl_Platform WHERE PlatformName = @PlatformName
SELECT COUNT(*) As IsValid FROM tbl_Platform WHERE PlatformName like @PlatformName
This is my stored procedure call under module configuration, validation configuration section:
usp_CheckPlatform '$(Platfom)'