Click here to Skip to main content
16,007,610 members
Home / Discussions / Database
   

Database

 
GeneralRe: INSERT INTO....!?!?!?! Pin
ChrRun6-Apr-06 22:48
ChrRun6-Apr-06 22:48 
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 
Dude this code below works 100% and your duty is just to copy from here and paste in your project

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
<br />
Dim strconn As String ' here declare string variable for instance of OleDbConnection<br />
strconn = "Provider=Microsoft.Jet.OleDb.4.0;data source = C:\Inetpub\wwwroot\IED416\ied416lp3_19\db\handel.mdb" ' here initialize  string  variable  by  givin  string  of  conenction<br />
Dim dbconn As OleDbConnection = New OleDbConnection(strconn) 'here  initialize OleDbConnection  with string  variable<br />
dbconn.Open() 'Here open OleDb connection string<br />
Dim dbinsert As OleDbCommand = New OleDbCommand("INSERT INTO Kunder (Namn,Ort)  VALUES ('Christian','Sweden')", dbconn)  'Here is initialize  of OleDbCommand  and  here you  get  your  error but if  you  use  this  code  you  should  not  get  any  error<br />
dbinsert.ExecuteNonQuery() 'Here  executed  OleDbCommand <br />
MsgBox("Weee") 'Here Display MessageBox with string Weee<br />
dbconn.Close() ' Here Closed  your  connection string<br />
<br />
End Sub




-- modified at 6:04 Friday 7th April, 2006
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 
AnswerRe: How to audit a database? Pin
Colin Angus Mackay5-Apr-06 21:15
Colin Angus Mackay5-Apr-06 21:15 
AnswerRe: How to audit a database? Pin
uglystone21-Apr-06 18:08
uglystone21-Apr-06 18:08 
QuestionDSN / SQL Connection String Pin
rahsi5-Apr-06 6:13
rahsi5-Apr-06 6:13 
AnswerRe: DSN / SQL Connection String Pin
Colin Angus Mackay5-Apr-06 7:28
Colin Angus Mackay5-Apr-06 7:28 
GeneralRe: DSN / SQL Connection String Pin
rahsi6-Apr-06 8:30
rahsi6-Apr-06 8:30 
QuestionSQL/VB.Net Pin
MikeUPMC5-Apr-06 5:34
MikeUPMC5-Apr-06 5:34 
AnswerRe: SQL/VB.Net Pin
Colin Angus Mackay5-Apr-06 5:58
Colin Angus Mackay5-Apr-06 5:58 

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.