Results 1 to 6 of 6
  1. #1
    mp3909 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    154

    rs.BOF and rs.EOF


    I am seeking some clarification.

    does rs.EOF mean the end of recordset or last record of a recordset?

    and does rs.BOF mean before the first record of a recordset or the first record of a recordset?

  2. #2
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,205
    Just out of interest, what do you think there is in a recordset before the first record or after the last record?
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    End of File is the last record. You get an error if you go past it.

    Begin of File is 1st, you get an error if you try to go before it.

  4. #4
    Join Date
    Apr 2017
    Posts
    1,793
    https://docs.microsoft.com/en-us/sql...ql-server-2017
    BOF Indicates that the current record position is before the first record in a Recordset object.
    EOF Indicates that the current record position is after the last record in a Recordset object.

    ...
    The BOF property returns True (-1) if the current record position is before the first record and False (0) if the current record position is on or after the first record.
    The EOF property returns True if the current record position is after the last record and False if the current record position is on or before the last record.
    Quoted allows the check for empty recordest. When EOF = BOF, then recordset is empty.

  5. #5
    accesstos's Avatar
    accesstos is offline Expert
    Windows XP Access 2007
    Join Date
    Dec 2018
    Location
    Greece
    Posts
    551
    Quote Originally Posted by isladogs View Post
    Just out of interest, what do you think there is in a recordset before the first record or after the last record?
    The same as before the birth and after the death: A universe of possibilities to exist.

  6. #6
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,205
    Ah...that allows for an infinite number of possible answers
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

Please reply to this thread with any new information or opinions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums