Results 1 to 2 of 2

Thread: can´t fetch select

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2006
    Posts
    5

    can´t fetch select

    I´m trying to fetch some data from a database to a variabele.

    I´d created a data connection to an acces db

    I can login (due to select statement), but i can't fetch data from the db



    VB Code:
    1. command = "{statement}"
    2. OleDbDataAdapter1.SelectCommand.CommandText = command

    But how can you fetch data from the db.
    I read something about getrow but i really can't fix it.

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

    Re: can´t fetch select

    I suggest that you read the ADO.NET tutorial in my signature and also the Access section from the Start VB.NET tutorial.
    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

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