how do i display the current record im viewing ona form?

smoke

Registered User.
Local time
Today, 03:23
Joined
Sep 2, 2004
Messages
18
thanks ................
 
smoke,

You are always displaying the current record on your form.

Do you mean choose from a listbox or combobox, then view?

Do you mean print a report for the current record?

Wayne
 
no i removed the control stuff and made my own on my form but i need to display the current record im on, because it doesnt display it cuz i removed the status bar thing.
 
Are you referring to the Record X of Y info? If so, try this in your forms OnCurrent event...
Code:
Private Sub Form_Current()

    If Me.NewRecord Then
        Me.Form.Caption = "Your Form Name - New Record (" & Me.RecordsetClone.RecordCount & " existing records)"
    Else
        Me.Form.Caption = "Your Form Name - Record " & [CurrentRecord] & " of " & Me.RecordsetClone.RecordCount
    End If

End Sub
 

Users who are viewing this thread

Back
Top Bottom