Get to First Record

This is a discussion on Get to First Record within the C++ Programming forums, part of the General Programming Boards category; Hi All, I have a question that has been bugging me for a day now. I need to get to ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    29

    Unhappy Get to First Record

    Hi All,
    I have a question that has been bugging me for a day now.
    I need to get to the First record in a table in Access. I am using the following line of code...

    DataSource1->DataSet->First ();

    And I've tried others.....

    DataSource1->DataSet->FindFirst ();

    but this for some strange reason leads me to record 16!

    Can anyone help!!! This is cracking me up!!

    Thanks
    Colin

  2. #2
    Registered User
    Join Date
    Mar 2002
    Posts
    1,595
    codeguru.com seems to be a good spot for help with MS products, if no one here responds in a resonable period of time.

  3. #3
    www.entropysink.com
    Join Date
    Feb 2002
    Posts
    605
    DataSource1->DataSet->First ();
    Try

    DataSource1->DataSet->MoveFirst ();

    I think FindFirst finds the first record that satisfies a set criteria.
    Visit entropysink.com - It's what your PC is made for!

  4. #4
    Registered User
    Join Date
    Jan 2002
    Posts
    29
    Thanks guys,I'll check them out tomorrow.
    -Colin.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with binary file c++
    By lucky_mutani in forum C++ Programming
    Replies: 4
    Last Post: 06-05-2009, 10:24 AM
  2. First record returning null??
    By Kumura in forum C Programming
    Replies: 7
    Last Post: 05-31-2005, 08:10 PM
  3. updating and deleting a record
    By Burritt in forum C Programming
    Replies: 2
    Last Post: 04-19-2003, 05:58 PM
  4. String sorthing, file opening and saving.
    By j0hnb in forum C Programming
    Replies: 9
    Last Post: 01-23-2003, 01:18 AM
  5. behind and confused
    By steviecrawf in forum C Programming
    Replies: 1
    Last Post: 11-09-2001, 12:51 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21