Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', or 'UPDATE'
Hi I have an invalid sql statement error. This is my code: Imports System.Data.OleDb 'For OleDbConnection Imports System.Data 'For ConnectionState Public Class WebForm1 Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub Protected Sub btnInsert_Click(sender As Object, e As EventArgs) Handles btnInsert.Click '1 declare the variables Dim strName As String = txtName.Text Dim strAddress As String = txtAddress.Text '2. creates a new connection to your DB. Dim conn As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;D
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.