Results 1 to 2 of 2

Thread: If recordset.EOF

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2000
    Location
    Gig Harbor, WA; Posts: 89950
    Posts
    360

    Angry

    OK I want to prevent my prog. from actually showing the end of file of beginning of file info (blank spaces)
    Can you make the Prev. and next buttons stop at the first and last records in a DB?

    Code:
    Private Sub cmdPrev_Click()
    cmdNext.Enabled = True
    If datMakes.Recordset.BOF = False Then
    datMakes.Recordset.MovePrevious
    Else:
    datMakes.Recordset.MoveNext
    cmdPrev.Enabled = False
    Exit Sub
    End If
    End Sub
    Mahalo
    VB6(SP5), VC++, COBOL, Basic, JAVA
    MBA, MCSD, MCSE, A+
    Computer Forensics

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2000
    Location
    Gig Harbor, WA; Posts: 89950
    Posts
    360

    Thumbs up

    I knew it was something like that
    Thanks!!
    Lee
    Mahalo
    VB6(SP5), VC++, COBOL, Basic, JAVA
    MBA, MCSD, MCSE, A+
    Computer Forensics

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