1
Reply

Access database and c#

Aleksandar Ilioski

Aleksandar Ilioski

Apr 4 2009 4:14 PM
2.4k
Hi everyone! I have one problem so I hope someone can help me... I have access DataBase and i write in it from c#, i have search function that fill dataGrid from the dataBase from oleDbDataAdapter... the problem is in the SelectCommandText if I wrote "Select * from tblStudent where Name like '"+textBox1.Text+"';" it works fine... but if i put * in the after key word it doesnt work... and if I create query in access and put * after key word it works fine to... so can anyone help me?? I hope you understand me... select * from tblStudent where Name like 'mike*'; works from access query but doesnt work from c# code...

Answers (1)