Results 1 to 4 of 4

Thread: [2005] From Access to String or to Array

  1. #1

    Thread Starter
    Junior Member Righteous_trespasser's Avatar
    Join Date
    Feb 2007
    Location
    Pretoria, South-Africa
    Posts
    31

    [2005] From Access to String or to Array

    I have an access Database that I want to read some data from, now I know how to connect to the database and Open and close it, but from there I am stuck, all I want to do is take a specific column in one of the Tables and read out of it row by row and add it to a string ... So this is what I have so far ...

    Code:
    Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    Dim DBCon As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data source= *my database source*")
            DBCon.Open()
    
    **here I need to go through each row and add the column's data to a string or an array (I'd prefer it being a string)**
    
            DBCon.Close()
    End Sub
    I have tried googling for this but I am unsure on what to search for so I'm not getting the relevant results ...
    Righteous_Trespasser
    "Be Good, And If You're Not, Be Good At It"

    www.dessoft.co.za

  2. #2
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    Re: [2005] From Access to String or to Array

    Hi there,
    Here are some good links to help you get started. Read the first article first. Good luck.
    http://vbforums.com/showthread.php?t=469872
    http://msdn2.microsoft.com/en-us/lib...60(vs.80).aspx

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] From Access to String or to Array

    http://www.vbforums.com/showthread.php?t=469872

    The second example will be of most interest to you.

    Edit: Shazzam!
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Junior Member Righteous_trespasser's Avatar
    Join Date
    Feb 2007
    Location
    Pretoria, South-Africa
    Posts
    31

    Re: [2005] From Access to String or to Array

    Oh my!!! What legends you are ...

    @ jmcilhinney: I thought I had lots of posts at ozzu.com ... but I was wrong ... lol ... nice
    Righteous_Trespasser
    "Be Good, And If You're Not, Be Good At It"

    www.dessoft.co.za

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