JM Ribeiro
New member
- Joined
- Mar 4, 2009
- Messages
- 1
- Programming Experience
- 3-5
Hi
I'm trying to use Insert to save the data into an Access DB.
When using this coed I get a Syntax error.
Can anyone help I'm tiered of searching google for an answer.
Thanks
This is the coed I'm using.
m_Customer = comCustomer.ExecuteReader
Dim adapter As New OleDb.OleDbDataAdapter
Dim customer_dt As New DataTable
customer_dt.Load(m_Customer)
m_Notes = comdNotes.ExecuteReader
Dim Notes_dt As New DataTable
Notes_dt.Load(m_Notes)
Dim sql As String = "Insert Into Customer_tbl(Date,PONumber,First Name,Last Name,Address,City,Civic)values(m_today,txtOrderEntry,txtFirstName,txtLastName,TxtAddress,txtCity,txtCivic)"
Dim cmd As New OleDb.OleDbCommand(sql, con)
cmd.executenonquery()
I'm trying to use Insert to save the data into an Access DB.
When using this coed I get a Syntax error.
Can anyone help I'm tiered of searching google for an answer.
Thanks
This is the coed I'm using.
m_Customer = comCustomer.ExecuteReader
Dim adapter As New OleDb.OleDbDataAdapter
Dim customer_dt As New DataTable
customer_dt.Load(m_Customer)
m_Notes = comdNotes.ExecuteReader
Dim Notes_dt As New DataTable
Notes_dt.Load(m_Notes)
Dim sql As String = "Insert Into Customer_tbl(Date,PONumber,First Name,Last Name,Address,City,Civic)values(m_today,txtOrderEntry,txtFirstName,txtLastName,TxtAddress,txtCity,txtCivic)"
Dim cmd As New OleDb.OleDbCommand(sql, con)
cmd.executenonquery()