Thread: Get to First Record

  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
    603
    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, 09:24 AM
  2. First record returning null??
    By Kumura in forum C Programming
    Replies: 7
    Last Post: 05-31-2005, 07:10 PM
  3. updating and deleting a record
    By Burritt in forum C Programming
    Replies: 2
    Last Post: 04-19-2003, 04: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