Click here to Skip to main content
15,892,059 members
Home / Discussions / Database
   

Database

 
GeneralRe: load + save ADO.NET Methodology (no code) Pin
il_manti7-Apr-06 0:57
il_manti7-Apr-06 0:57 
QuestionINSERT INTO....!?!?!?! Pin
ChrRun6-Apr-06 3:53
ChrRun6-Apr-06 3:53 
AnswerRe: INSERT INTO....!?!?!?! Pin
albCode6-Apr-06 4:56
albCode6-Apr-06 4:56 
GeneralRe: INSERT INTO....!?!?!?! Pin
ChrRun6-Apr-06 5:16
ChrRun6-Apr-06 5:16 
GeneralRe: INSERT INTO....!?!?!?! Pin
albCode6-Apr-06 5:31
albCode6-Apr-06 5:31 
GeneralRe: INSERT INTO....!?!?!?! Pin
ChrRun6-Apr-06 9:34
ChrRun6-Apr-06 9:34 
GeneralRe: INSERT INTO....!?!?!?! Pin
albCode6-Apr-06 20:54
albCode6-Apr-06 20:54 
GeneralRe: INSERT INTO....!?!?!?! Pin
ChrRun6-Apr-06 22:48
ChrRun6-Apr-06 22:48 
It give me error when I write this code.

'Import' statements must precede any declarations.


Imports.System.Data.OleDb
'''''''

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)Handles Button2.Click
Dim dbconn As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; data source = C:\Inetpub\wwwroot\IED416\ied416lp3_19\db\handel.mdb")
Dim dbinsert As OleDb.OleDbCommand
dbconn.Open()
dbinsert = dbconn.CreateCommand
dbinsert.CommandText = "INSERT INTO Kunder (Namn,Ort) VALUES ('Christian','Sweden')"
>> dbinsert.CommandText = "UPDATE Kunder SET (Namn='Christian',Ort = 'Sweden')"
dbinsert.Connection = dbconn
dbinsert.ExecuteNonQuery()
MsgBox("Weee")
dbconn.Close()
End Sub

I also tried the line of code with UPDATE, but it didnt work.

Pleeze help me!!!
GeneralRe: INSERT INTO....!?!?!?! Pin
albCode6-Apr-06 23:06
albCode6-Apr-06 23:06 
GeneralRe: INSERT INTO....!?!?!?! Pin
ChrRun6-Apr-06 23:31
ChrRun6-Apr-06 23:31 
GeneralRe: INSERT INTO....!?!?!?! Pin
albCode6-Apr-06 23:37
albCode6-Apr-06 23:37 
GeneralRe: INSERT INTO....!?!?!?! Pin
ChrRun6-Apr-06 23:39
ChrRun6-Apr-06 23:39 
GeneralRe: INSERT INTO....!?!?!?! Pin
albCode6-Apr-06 23:42
albCode6-Apr-06 23:42 
GeneralRe: INSERT INTO....!?!?!?! Pin
ChrRun6-Apr-06 23:53
ChrRun6-Apr-06 23:53 
GeneralRe: INSERT INTO....!?!?!?! Pin
albCode7-Apr-06 0:04
albCode7-Apr-06 0:04 
GeneralRe: INSERT INTO....!?!?!?! Pin
Colin Angus Mackay7-Apr-06 0:20
Colin Angus Mackay7-Apr-06 0:20 
GeneralRe: INSERT INTO....!?!?!?! Pin
albCode7-Apr-06 0:24
albCode7-Apr-06 0:24 
QuestionCREATE ASSEMBLY problem in SQL 2005 Pin
Paul Watson6-Apr-06 1:37
sitebuilderPaul Watson6-Apr-06 1:37 
QuestionSQLite ~ Access Pin
aukh5-Apr-06 23:05
aukh5-Apr-06 23:05 
QuestionIs there a way to call sql script from inside of another sql in SQLServer Pin
Nguyen Thi Thanh5-Apr-06 22:25
Nguyen Thi Thanh5-Apr-06 22:25 
QuestionACCES 2003 > SQL 2005 EXPRESS Pin
ThePmanLives5-Apr-06 16:41
ThePmanLives5-Apr-06 16:41 
QuestionCreating form at runtime and uploading data from it to database Pin
Amit R5-Apr-06 16:32
Amit R5-Apr-06 16:32 
AnswerRe: Creating form at runtime and uploading data from it to database Pin
Colin Angus Mackay5-Apr-06 21:22
Colin Angus Mackay5-Apr-06 21:22 
AnswerRe: Creating form at runtime and uploading data from it to database Pin
sathish s5-Apr-06 22:09
sathish s5-Apr-06 22:09 
QuestionHow to audit a database? Pin
uglystone5-Apr-06 13:51
uglystone5-Apr-06 13:51 

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.