Click here to Skip to main content
15,897,718 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: connection string file or function Pin
Henry Minute11-Apr-09 2:44
Henry Minute11-Apr-09 2:44 
GeneralRe: connection string file or function Pin
Dalek Dave11-Apr-09 3:36
professionalDalek Dave11-Apr-09 3:36 
GeneralRe: connection string file or function Pin
Henry Minute11-Apr-09 3:43
Henry Minute11-Apr-09 3:43 
AnswerRe: connection string file or function Pin
0x3c011-Apr-09 5:31
0x3c011-Apr-09 5:31 
QuestionGet path Pin
p_196010-Apr-09 23:46
p_196010-Apr-09 23:46 
AnswerRe: Get path Pin
Henry Minute11-Apr-09 2:47
Henry Minute11-Apr-09 2:47 
AnswerRe: Get path Pin
Dave Kreskowiak11-Apr-09 6:58
mveDave Kreskowiak11-Apr-09 6:58 
Questionproblem in updating database [modified] Pin
rajulama10-Apr-09 21:17
rajulama10-Apr-09 21:17 
Hi, I am having problem to update the database from the changes made to DGV.
Following is the code and line in the bold doesn't update the database. Please help me
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the 'Db1DataSet.Sheet1' table. You can move, or remove it, as needed.
        Me.Sheet1TableAdapter.Fill(Me.Db1DataSet.Sheet1)

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        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()
            Me.Sheet1TableAdapter.Update(Me.Db1DataSet.Sheet1)
        End If
        
    End Sub


modified on Saturday, April 11, 2009 3:26 AM

AnswerRe: problem in updating database Pin
Mycroft Holmes10-Apr-09 22:37
professionalMycroft Holmes10-Apr-09 22:37 
GeneralRe: problem in updating database Pin
rajulama10-Apr-09 23:07
rajulama10-Apr-09 23:07 
GeneralRe: problem in updating database Pin
Dave Kreskowiak11-Apr-09 6:56
mveDave Kreskowiak11-Apr-09 6:56 
QuestionHow do I set permissions for delete or move a file from external drive in Vista Pin
x38class10-Apr-09 21:00
x38class10-Apr-09 21:00 
AnswerRe: How do I set permissions for delete or move a file from external drive in Vista Pin
Anubhava Dimri10-Apr-09 21:22
Anubhava Dimri10-Apr-09 21:22 
GeneralRe: How do I set permissions for delete or move a file from external drive in Vista Pin
x38class10-Apr-09 23:02
x38class10-Apr-09 23:02 
GeneralRe: How do I set permissions for delete or move a file from external drive in Vista Pin
Anubhava Dimri10-Apr-09 23:15
Anubhava Dimri10-Apr-09 23:15 
GeneralRe: How do I set permissions for delete or move a file from external drive in Vista Pin
x38class11-Apr-09 20:37
x38class11-Apr-09 20:37 
GeneralRe: How do I set permissions for delete or move a file from external drive in Vista Pin
Anubhava Dimri12-Apr-09 18:06
Anubhava Dimri12-Apr-09 18:06 
GeneralRe: How do I set permissions for delete or move a file from external drive in Vista Pin
x38class13-Apr-09 21:01
x38class13-Apr-09 21:01 
GeneralRe: How do I set permissions for delete or move a file from external drive in Vista Pin
Anubhava Dimri13-Apr-09 21:12
Anubhava Dimri13-Apr-09 21:12 
GeneralRe: How do I set permissions for delete or move a file from external drive in Vista Pin
x38class18-Apr-09 19:10
x38class18-Apr-09 19:10 
QuestionCan you help me code a function procedure in Visual Basic 2008? Pin
Boblc12310-Apr-09 18:36
Boblc12310-Apr-09 18:36 
AnswerRe: Can you help me code a function procedure in Visual Basic 2008? Pin
Dave Kreskowiak10-Apr-09 18:49
mveDave Kreskowiak10-Apr-09 18:49 
GeneralRe: Can you help me code a function procedure in Visual Basic 2008? Pin
Boblc12310-Apr-09 18:56
Boblc12310-Apr-09 18:56 
GeneralRe: Can you help me code a function procedure in Visual Basic 2008? Pin
Wes Aday10-Apr-09 19:13
professionalWes Aday10-Apr-09 19:13 
GeneralRe: Can you help me code a function procedure in Visual Basic 2008? Pin
Dalek Dave10-Apr-09 19:34
professionalDalek Dave10-Apr-09 19:34 

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.