Results 1 to 3 of 3

Thread: values from a db into an array

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2004
    Posts
    36

    values from a db into an array

    hi,

    does anyone have any code to show i could read data from my access db and place the data in an array. I ideally want to just read the primary key from each table (empID from the employee table)

    cheers

  2. #2
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870
    why don't you just select the primary key in the select statement then? You could use a DataTable object as well if you don't want to use a dataset. You can fill a datatable with a data adapter the same way you do a dataset.
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2004
    Posts
    36
    thanks for the reply,

    sorry but i am a bit new to this so i dont really have the grasp of the language yet. do you have a code snippet or example to demonstrate what you mean?

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