Article ID: 143033
Article Last Modified on 5/7/2003
Default Property Set to ----------------------------------------------- Command1 Caption AbsolutePosition Command2 Caption PercentPosition Data1 DatabaseName BIBLIO.MDB Data1 RecordSource Titles Label1 Caption Enter a Number: Text1 Text Label2 Caption Label2 DataSource Data1 Label2 DataField Title Label3 Caption Label4 Caption
Private Sub Command1_Click()
Dim rs1 As Recordset
Set rs1 = Data1.Recordset
rs1.MoveLast
rs1.AbsolutePosition = Val(Text1.Text)
Label3.Caption = "Absolute Results: " & rs1("title")
End Sub
Private Sub Command2_Click()
Dim rs2 As Recordset
Set rs2 = Data1.Recordset
rs2.MoveLast 'RecordCount now accurate
rs2.PercentPosition = Val(Text1.Text)
Label4.Caption = "Percent Results: " & rs2("title")
End Sub
Additional query words: kbVBp400 kbVBp600 kbdse kbDSupport kbVBp
Keywords: kbinfo KB143033