I'm trying to store a data from the checkbox. when i checked on NSO Birth Certificate it has to be stored into my mssql server.
here is my code
If nso.Checked = True Then
strsql = "insert into student info(Requirements) values ('" & nso.Checked & "')"
Dim sqlcmd As New SqlClient.SqlCommand 'opens the db
sqlcmd.CommandText = strsql
sqlcmd.Connection = sqlconn
But when i check on the NSO Birth Certificate the error says SqlException was unhandled. Incorrect syntax near 'info'.