Click here to Skip to main content
16,004,991 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: help me Pin
Guffa27-May-06 5:23
Guffa27-May-06 5:23 
AnswerRe: help me Pin
HaloZa28-May-06 8:38
HaloZa28-May-06 8:38 
AnswerRe: help me Pin
FrankyT28-May-06 21:24
FrankyT28-May-06 21:24 
QuestionTo insert a new record in asp.net Pin
ADY00727-May-06 4:35
ADY00727-May-06 4:35 
AnswerRe: To insert a new record in asp.net Pin
Colin Angus Mackay27-May-06 6:16
Colin Angus Mackay27-May-06 6:16 
GeneralRe: To insert a new record in asp.net Pin
ADY00727-May-06 9:18
ADY00727-May-06 9:18 
GeneralRe: To insert a new record in asp.net Pin
Colin Angus Mackay27-May-06 9:32
Colin Angus Mackay27-May-06 9:32 
GeneralRe: To insert a new record in asp.net [modified] Pin
ADY00727-May-06 10:22
ADY00727-May-06 10:22 
yes i am doing it with the oledb! but its useless.! i amm doing this right now.

Private Sub Save()
Dim daMem As OleDbDataAdapter = New OleDbDataAdapter("Insert Into tblMembers(Name,Surname) values('Hello', 'F***')", odcConnection)
daMem = New OleDbDataAdapter("Select * From tblMembers", odcConnection)
Dim cb As OleDbCommandBuilder = New OleDbCommandBuilder(daMem)
Dim dsNewRow As DataRow

dsNewRow = dsMembers.Tables("tblMembers").NewRow

dsNewRow.Item("Name") = txtName.Text
dsNewRow.Item("Surname") = txtSurname.Text
dsNewRow.Item("Phone") = txtPhone.Text
dsNewRow.Item("Mobile") = txtMobile.Text
dsNewRow.Item("Username") = txtUsername.Text
dsNewRow.Item("Password") = txtPassword.Text
dsNewRow.Item("TimesEntered") = intTimesEntered

dsMembers.Tables("tblMembers").Rows.Add(dsNewRow)

daMem.Update(dsMembers, "tblMembers")
End Sub

But daMem.Update(dsMembers, "tblMembers") he is telling me that the Insert Command isn't there! Frown | :( but i am making a new row! can someone help pls??

This is the exact error:

Exception Details: System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement.


Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.

-- modified at 16:26 Saturday 27th May, 2006
GeneralRe: To insert a new record in asp.net [modified] Pin
Colin Angus Mackay27-May-06 10:34
Colin Angus Mackay27-May-06 10:34 
GeneralRe: To insert a new record in asp.net Pin
ADY00727-May-06 11:13
ADY00727-May-06 11:13 
GeneralRe: To insert a new record in asp.net Pin
Colin Angus Mackay27-May-06 11:16
Colin Angus Mackay27-May-06 11:16 
GeneralRe: To insert a new record in asp.net Pin
ADY00727-May-06 11:22
ADY00727-May-06 11:22 
GeneralRe: To insert a new record in asp.net Pin
ADY00727-May-06 11:23
ADY00727-May-06 11:23 
GeneralRe: To insert a new record in asp.net Pin
ADY00727-May-06 11:57
ADY00727-May-06 11:57 
GeneralRe: To insert a new record in asp.net Pin
Colin Angus Mackay27-May-06 13:52
Colin Angus Mackay27-May-06 13:52 
GeneralRe: To insert a new record in asp.net Pin
ADY00727-May-06 14:14
ADY00727-May-06 14:14 
GeneralRe: To insert a new record in asp.net Pin
Colin Angus Mackay27-May-06 14:49
Colin Angus Mackay27-May-06 14:49 
GeneralRe: To insert a new record in asp.net Pin
ADY00729-May-06 10:39
ADY00729-May-06 10:39 
GeneralRe: To insert a new record in asp.net Pin
Colin Angus Mackay29-May-06 12:19
Colin Angus Mackay29-May-06 12:19 
QuestionUpdate cookies Pin
J Liang27-May-06 3:16
J Liang27-May-06 3:16 
AnswerRe: Update cookies Pin
Guffa27-May-06 4:00
Guffa27-May-06 4:00 
GeneralRe: Update cookies Pin
J Liang27-May-06 4:49
J Liang27-May-06 4:49 
GeneralRe: Update cookies Pin
J Liang27-May-06 4:56
J Liang27-May-06 4:56 
QuestionDisabling Alt & Windows key Pin
Serpent66627-May-06 3:15
Serpent66627-May-06 3:15 
Questionhow it works Pin
vidyashankar27-May-06 1:54
vidyashankar27-May-06 1:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.