1
Answer

Access database and c#

Aleksandar Ilioski

Aleksandar Ilioski

15y
2.4k
1
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)