PDA

Click to See Complete Forum and Search --> : My select statement did not work,,Pls help


maqmaq
Oct 14th, 2000, 11:18 PM
When I run this sql:

mysql = "select * from cri where stock like '[89*]';"
Data1.RecordSource = mysql
Data1.Refresh

I am getting this error:
Too vew parameters, expected 1 (3061)

What could be wrong in my select statement, and how to learn the equation of putting the correct position of commas, punctuation, semicolon etc so I will not face this kind of problem

Please help
Appreciated in advance

makai
Oct 15th, 2000, 12:31 AM
try

mysql = "select * from cri where stock like '89*'"

maqmaq
Oct 15th, 2000, 12:56 AM
Same error occurred !!!!

maqmaq
Oct 15th, 2000, 05:19 AM
What a mestake I was doing, The feild name was not completed, it was stock number not only stock,,,,I reaply the sql with the correct name and it work correct

Thanks for your particiption