I've been trying to find a solution to my query regarding the LIMIT Clause, here's my code,
"SELECT * FROM tbl_student WHERE s_grade='" & grade.Text & "' AND s_status='Validated' ORDER BY s_id_no ASC LIMIT 10"
I was wondering if could do,
"SELECT * FROM tbl_student WHERE s_grade='" & grade.Text & "' AND s_status='Validated' ORDER BY s_id_no ASC LIMIT='" & txt_limit.Text & "'"
Getting the limit value based on my selection which contains the limit, but failed to do so, i get this syntax error.