|
-
Jul 2nd, 2000, 11:31 PM
#1
Thread Starter
Hyperactive Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|