Click here to Skip to main content
15,921,156 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good Evening to all, i have use this query into my project
select * from TabDupMembers where id in(" + str + ") order by MemberName
In this query " + Str + " is a variable.(str="7385,7386,7387")
whenever am try execute the query i got an error
"No Value given for one or more required parameters". I can't find out the problem Please any body can help me.

Thanks in Advance!
Posted
Updated 2-Jul-11 1:21am
v2

Make sure you have defined the parameters with you command - http://msdn.microsoft.com/en-us/library/bbw6zyha%28v=vs.71%29.aspx[^].
 
Share this answer
 
 
Share this answer
 
Have a read of this VBForum article : No Value given for one or more required parameters[^]

Normally this is a syntax issue of some kind, I would suggest that you try the "constructed" sql statement directly in the database that you are using
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900