J
John
Hi
I am getting an 'System.NullReferenceException: Object reference not set to
an instance of an object.' error on the following line;
Dim sSQL As String = "INSERT INTO applications ( title, forenames, surname,
occupation) " & _ '<== This line gives the error.
"VALUES('" & txtTitle.Text & "', '" &
txtForenames.Text & "', '" & txtSurname.Text & "', '" &
txtOccupation.SelectedItem.Text & "')"
What am I doing wrong?
Thanks
Regards
I am getting an 'System.NullReferenceException: Object reference not set to
an instance of an object.' error on the following line;
Dim sSQL As String = "INSERT INTO applications ( title, forenames, surname,
occupation) " & _ '<== This line gives the error.
"VALUES('" & txtTitle.Text & "', '" &
txtForenames.Text & "', '" & txtSurname.Text & "', '" &
txtOccupation.SelectedItem.Text & "')"
What am I doing wrong?
Thanks
Regards