Results 1 to 3 of 3

Thread: [RESOLVED] [MS Access][VB.Net 2008] No Error but no values from a query

  1. #1

    Thread Starter
    Addicted Member Genom's Avatar
    Join Date
    May 2006
    Posts
    186

    Resolved [RESOLVED] [MS Access][VB.Net 2008] No Error but no values from a query

    Hi,

    I have looked very long time in google and in this forum but maybe because of the wrong keywords I cant find any solution.

    Code:
        Dim CN As OleDb.OleDbConnection
        Dim DS As DataSet
        Dim DA As OleDb.OleDbDataAdapter
    
        Private Sub Bağlan(Optional ByRef Path As String = "Ürün Hesap Veritabanı.accdb")
            CN = New OleDb.OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & Path & ";Persist Security Info=False;")
            CN.Open()
    
            DA = New OleDb.OleDbDataAdapter("SELECT * FROM Products", CN)
    
            DS = New DataSet
            DA.Fill(DS, "Products")
    
            DGW.DataSource = DS
    
        End Sub
    In the DGW (datagridview) there no columns, rows or cells. But this table has a few rows. How can I solve this problem?

    Thanks guys...
    Dim Me As Coder

  2. #2

  3. #3

    Thread Starter
    Addicted Member Genom's Avatar
    Join Date
    May 2006
    Posts
    186

    Re: [MS Access][VB.Net 2008] No Error but no values from a query

    Ooops thanks...
    Dim Me As Coder

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width