Click here to Skip to main content
15,899,634 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Refresh SQL 2000 (VB.NET) Pin
Christian Graus26-Apr-09 23:22
protectorChristian Graus26-Apr-09 23:22 
GeneralRe: Refresh SQL 2000 (VB.NET) Pin
hoangsamac26-Apr-09 23:30
hoangsamac26-Apr-09 23:30 
GeneralRe: Refresh SQL 2000 (VB.NET) Pin
Christian Graus26-Apr-09 23:52
protectorChristian Graus26-Apr-09 23:52 
GeneralRe: Refresh SQL 2000 (VB.NET) Pin
Jon_Boy27-Apr-09 3:21
Jon_Boy27-Apr-09 3:21 
GeneralRe: Refresh SQL 2000 (VB.NET) Pin
Christian Graus27-Apr-09 9:54
protectorChristian Graus27-Apr-09 9:54 
Questionaccess databse into datagridview Pin
rajulama26-Apr-09 22:30
rajulama26-Apr-09 22:30 
AnswerRe: access databse into datagridview Pin
Christian Graus26-Apr-09 22:45
protectorChristian Graus26-Apr-09 22:45 
GeneralRe: access databse into datagridview Pin
rajulama26-Apr-09 22:54
rajulama26-Apr-09 22:54 
thanks for your suggestions but I think you misunderstood my problem. Following is complete code and its not working:
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=;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 [Joint Restraint Assignments]" & 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 just wonder what's wrong with this code, in particular when i want to read access database file.
GeneralRe: access databse into datagridview Pin
Christian Graus26-Apr-09 22:59
protectorChristian Graus26-Apr-09 22:59 
GeneralRe: access databse into datagridview Pin
rajulama26-Apr-09 23:02
rajulama26-Apr-09 23:02 
GeneralRe: access databse into datagridview Pin
Christian Graus26-Apr-09 23:07
protectorChristian Graus26-Apr-09 23:07 
GeneralRe: access databse into datagridview Pin
rajulama26-Apr-09 23:10
rajulama26-Apr-09 23:10 
GeneralRe: access databse into datagridview Pin
Christian Graus26-Apr-09 23:12
protectorChristian Graus26-Apr-09 23:12 
GeneralRe: access databse into datagridview Pin
rajulama26-Apr-09 23:17
rajulama26-Apr-09 23:17 
GeneralRe: access databse into datagridview Pin
Christian Graus26-Apr-09 23:21
protectorChristian Graus26-Apr-09 23:21 
GeneralRe: access databse into datagridview Pin
rajulama26-Apr-09 23:30
rajulama26-Apr-09 23:30 
GeneralRe: access databse into datagridview Pin
rajulama26-Apr-09 23:51
rajulama26-Apr-09 23:51 
GeneralRe: access databse into datagridview Pin
Christian Graus26-Apr-09 23:53
protectorChristian Graus26-Apr-09 23:53 
GeneralRe: access databse into datagridview Pin
rajulama27-Apr-09 0:02
rajulama27-Apr-09 0:02 
GeneralRe: access databse into datagridview Pin
rajulama27-Apr-09 0:10
rajulama27-Apr-09 0:10 
GeneralRe: access databse into datagridview Pin
rajulama27-Apr-09 0:13
rajulama27-Apr-09 0:13 
AnswerRe: access databse into datagridview Pin
Eddy Vluggen26-Apr-09 22:54
professionalEddy Vluggen26-Apr-09 22:54 
GeneralRe: access databse into datagridview Pin
rajulama26-Apr-09 22:55
rajulama26-Apr-09 22:55 
AnswerRe: access databse into datagridview Pin
Luc Pattyn27-Apr-09 1:04
sitebuilderLuc Pattyn27-Apr-09 1:04 
AnswerRe: access databse into datagridview Pin
Dave Kreskowiak27-Apr-09 2:12
mveDave Kreskowiak27-Apr-09 2:12 

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.