Click here to Skip to main content
15,894,017 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: help Pin
MidwestLimey10-Apr-09 5:10
professionalMidwestLimey10-Apr-09 5:10 
GeneralRe: help Pin
rajulama10-Apr-09 5:17
rajulama10-Apr-09 5:17 
GeneralRe: help Pin
Jon_Boy10-Apr-09 6:25
Jon_Boy10-Apr-09 6:25 
GeneralRe: help Pin
Dave Kreskowiak10-Apr-09 7:15
mveDave Kreskowiak10-Apr-09 7:15 
GeneralRe: help Pin
EliottA10-Apr-09 13:46
EliottA10-Apr-09 13:46 
GeneralRe: help Pin
rajulama10-Apr-09 18:34
rajulama10-Apr-09 18:34 
GeneralRe: help Pin
Kschuler10-Apr-09 7:50
Kschuler10-Apr-09 7:50 
GeneralRe: help Pin
rajulama10-Apr-09 8:41
rajulama10-Apr-09 8:41 
If OpenFileDialog1.ShowDialog(Me) = DialogResult.OK Then
Dim fi As New FileInfo(OpenFileDialog1.FileName)
Dim sConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties=Text;Data Source=" & fi.DirectoryName
Dim objConn As New OleDbConnection(sConnectionString)
Dim objDataSet As DataSet = New DataSet()
objConn.Open()
Dim objCmdSelect As New OleDbCommand("SELECT * FROM " & fi.Name, objConn)
Dim objAdapter1 As New OleDbDataAdapter
objAdapter1.SelectCommand = objCmdSelect
objAdapter1.Fill(objDataSet, "test")
DataGridView1.DataSource = objDataSet.Tables(0).DefaultView
objConn.Close()
End If


I have this and now to replace the data in existing database with that in datagridview I am using:
objAdapter1.Update(Me.dataset.filename)

But its not making any change in dataset table.rest is ok.
GeneralRe: help Pin
Kschuler10-Apr-09 8:47
Kschuler10-Apr-09 8:47 
GeneralRe: help Pin
Yusuf10-Apr-09 9:23
Yusuf10-Apr-09 9:23 
QuestionAdding my app's link to Desktop Context Menu Pin
Sumit Prakash Sharma10-Apr-09 1:05
professionalSumit Prakash Sharma10-Apr-09 1:05 
AnswerRe: Adding my app's link to Desktop Context Menu Pin
Jon_Boy10-Apr-09 1:57
Jon_Boy10-Apr-09 1:57 
AnswerRe: Adding my app's link to Desktop Context Menu Pin
Dave Kreskowiak10-Apr-09 3:00
mveDave Kreskowiak10-Apr-09 3:00 
GeneralRe: Adding my app's link to Desktop Context Menu Pin
Colin Angus Mackay10-Apr-09 3:12
Colin Angus Mackay10-Apr-09 3:12 
GeneralRe: Adding my app's link to Desktop Context Menu Pin
Jon_Boy10-Apr-09 3:16
Jon_Boy10-Apr-09 3:16 
GeneralRe: Adding my app's link to Desktop Context Menu Pin
Steven J Jowett10-Apr-09 4:26
Steven J Jowett10-Apr-09 4:26 
GeneralRe: Adding my app's link to Desktop Context Menu Pin
Dave Kreskowiak10-Apr-09 3:28
mveDave Kreskowiak10-Apr-09 3:28 
GeneralRe: Adding my app's link to Desktop Context Menu Pin
Jon_Boy10-Apr-09 4:01
Jon_Boy10-Apr-09 4:01 
GeneralRe: Adding my app's link to Desktop Context Menu Pin
Sumit Prakash Sharma10-Apr-09 22:46
professionalSumit Prakash Sharma10-Apr-09 22:46 
GeneralRe: Adding my app's link to Desktop Context Menu Pin
Dave Kreskowiak11-Apr-09 6:52
mveDave Kreskowiak11-Apr-09 6:52 
GeneralRe: Adding my app's link to Desktop Context Menu Pin
Sumit Prakash Sharma27-Aug-11 3:13
professionalSumit Prakash Sharma27-Aug-11 3:13 
GeneralRe: Adding my app's link to Desktop Context Menu Pin
Dave Kreskowiak28-Aug-11 13:16
mveDave Kreskowiak28-Aug-11 13:16 
Questionvbscript for reading the registry and search with regular expression [modified] Pin
TheScripter9-Apr-09 23:58
TheScripter9-Apr-09 23:58 
AnswerRe: vbscript for reading the registry and search with regular expression Pin
Dave Kreskowiak10-Apr-09 2:57
mveDave Kreskowiak10-Apr-09 2:57 
GeneralRe: vbscript for reading the registry and search with regular expression Pin
TheScripter10-Apr-09 3:49
TheScripter10-Apr-09 3:49 

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.