Results 1 to 4 of 4

Thread: Urgent data caption to display number of current record

  1. #1
    Guest

    Post

    I am using a data control, I need when the user scolls/jumps to a rtecord for it to tell the user what number record it is in.
    Like access dos ie record 1,record 23

    Thank you
    [email protected]

    ------------------

  2. #2
    Lively Member FirstKnight's Avatar
    Join Date
    Jul 1999
    Location
    Johannesburg, South Africa
    Posts
    95

    Post

    Try this,

    Private Sub datPrimaryRS_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
    'This will display the current record position for this recordset
    datPrimaryRS.Caption = CStr(datPrimaryRS.Recordset.AbsolutePosition)
    End Sub

  3. #3
    New Member
    Join Date
    Jan 2000
    Location
    Åsa, -, Sweden
    Posts
    14

    Post

    I don't know if this can help but there is a program in VB that's called "Visual Data Manager".
    If you start it and does what it tells you it will create a simple program to do the changes in your database.
    If you look at the code you can easily find the line that does what you want.
    (But since I'm a newbie at this I'm not sure that it's axactly what you want but you could check it out and see if it what's you want.)

    [This message has been edited by Tiger Claw (edited 01-12-2000).]

  4. #4
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    if you are using the standard DAO data control, you can use this:

    Code:
    Private Sub Data1_Reposition()
        With Data1
            .Caption = "Record " & _
    .Recordset.AbsolutePosition & " of " & _
    .Recordset.RecordCount
        End With
    End Sub

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