I want my form to display the absolute position and the recordcount of the records in the database but it keeps shoing me -1 for both . Why?
this is the code
this is the code
Code:
Private Sub MnuOVehType_Click()
Load FrmTypeEntry
For i = 1 To 4
FrmTypeEntry.cmdControl(i).Enabled = True
Next i
For j = 0 To 3
FrmTypeEntry.cmdNavigate(j).Enabled = True
Next j
FrmTypeEntry.TxtType.Locked = True
FrmTypeEntry.TxtType.Text = RsVehType("txtVEHTYPE")
[B]FrmTypeEntry.Label1.Caption = "VEHICLE TYPE " & RsVehType.AbsolutePosition & "of" & RsVehType.RecordCount[/B]
End Sub
Comment