|
||||||
| Visual Basic Programming Discussion forum for Visual Basic, an event driven programming language and associated development environment from Microsoft for its COM programming model. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
I have a VB6 application which uses MS Access as its backend.
Im familiar with Access and therefore how to place the record navigation buttons for: First Record Next Record Previous Record Last Record How would i code this in VB 6? I tried the following code on the first button but it doesnt go to the first record Code:
rsExecDet.MoveFirst Me.txtRecordCaption = "Record " & rsExecDet.AbsolutePosition & " of " & intRecordCount Last edited by TcM; 01-24-2008 at 08:17 AM. |
| Sponsored Links |
|
|
|
|||
|
These are the codes i've done and so far it works well
Code:
Private Sub cmdFirst_Click()
Adodc1.Refresh
If txtName.Text = "" Then
'Do nothing
ElseIf Adodc1.Recordset.BOF = True Then
'Do nothing
Else
Adodc1.Recordset.MoveFirst
End If
End Sub
Private Sub cmdLast_Click()
Adodc1.Refresh
If txtName.Text = "" Then
'Do nothing
ElseIf Adodc1.Recordset.EOF = True Then
'Do nothing
Else
Adodc1.Recordset.MoveLast
End If
End Sub
Private Sub cmdPrev_Click()
If txtName.Text = "" Then
'Do nothing
ElseIf Adodc1.Recordset.BOF = True Then
'Do nothing
Else
Adodc1.Recordset.MovePrevious
End If
End Sub
Private Sub cmdNext_Click()
If txtName.Text = "" Then
'Do nothing
ElseIf Adodc1.Recordset.EOF = True Then
'Do nothing
Else
Adodc1.Recordset.MoveNext
End If
End Sub
Last edited by TcM; 01-24-2008 at 08:17 AM. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Access server file from client | ahpooh | Visual Basic Programming | 1 | 09-06-2007 02:36 PM |
| [PHP] Faking Shell Access Through PHP | pranky | PHP Tutorials | 2 | 03-29-2007 07:28 AM |
| Access server file from Client | ahpooh | Visual Basic Programming | 2 | 02-14-2007 07:51 PM |
| Java:Tutorial - Access Modifiers | John | Java Tutorials | 0 | 12-09-2006 10:57 AM |
| HXTT Access 2.0.003 | Kernel | Software Development Tools | 0 | 09-28-2006 08:12 AM |
| WingedPanther | ........ | 2656.49 |
| Xav | ........ | 2576.41 |
| Brandon W | ........ | 1698.26 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 959.05 |
| dcs | ........ | 646.09 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 407.96 |
| chili5 | ........ | 380.6 |
Goal: 100,000 Posts
Complete: 97%