Results 1 to 3 of 3

Thread: BOF ?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Location
    Singapore
    Posts
    98
    Hi guys!
    How exactly does rst.bof works.
    Does it refer to the first record in a recordset or what?
    I tried to run a while loop and it does not seem to detect bof properly. What i am trying to do is to create page up and down effects, how should i do that without coding too complex?

  2. #2
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    My limited knowledge...

    BOF is not the first record !!!
    EOF is not the last record !!!

    BOF - File Header

    then Records 1 thru ???

    EOF - File Footer (for lack of better term)

    to determine that SQL return records use:

    if rst!recordcount>0 or

    if rst!EOF<> true

    I have never used rst!BOF in any situation, but others may offer more insight...
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  3. #3
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ....

    You are right, James, BOF is not the first record and EOF is not the last record. It's the same concept from the good old dBase.

    jax, try one thing. When you are moving forward in the recordset, keep checking for rst.eof Whenever the .eof returns true, position the record pointer on the last record (to prohibit further processing) or go to the first record (for a wrap-around-effect). Similarly while traversing the recordset backwards, you can check if .Bof is true, and if yes then take necessary action.

    As James has already said, mind well that EOF and BOF do not point to any records.

    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

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