Click here to Skip to main content
15,889,834 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
this is the code:

bindsrc.Filter = "stud_id as Student_Num like '" & TextBox1.Text & "%'"
Posted

1 solution

remove the 'as Student_Num', it isn't required. You would only use 'as Student_Num' when doing a select statement and not for the where clause. If you have binding a select that used the 'stud_id as Student_Num' then change your line of code to

bindsrc.Filter = "Student_Num like '" & TextBox1.Text & "%'"
 
Share this answer
 
v2
Comments
markqui 13-Mar-13 2:27am    
B1n4ry D1g1t

Thank you, it works....ahe

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