Custom Record Navigation
Hi I have an App with nested sub-forms, the record navigation is confusing and I've started moving the Record Navigation controls to the top of the forms to improve that. I'm stuck on the 'n of n' field, is there a generic property(s)/query that will give me this?
For the first n, use the AbsolutePosition property of the form's RecordsetClone. see MSDN For the second n, use the RecordCount property. Update: I prefer Mike's approach using CurrentRecord. I created a form with 2 text boxes: txtCurrentRecord and txtRecordCount. Then this procedure for the form's On Current event causes the text boxes to display the same values as the built-in navigation bar. Private Sub Form_Current() Me.txtCurrentRecord = Me.CurrentRecord If Not Me.NewRecord Then Me.txtRecordCount = Me.RecordsetClone.RecordCount Else Me.txtRecordCount = Me.CurrentRecord End If End Sub Update2: I added a procedure to Form Load to make sure RecordCount is accurate. Private Sub Form_Load() Me.RecordsetClone.MoveLast Me.RecordsetClone.MoveFirst End Sub
DSUM Formula Not Working
Format Currency to Group By Access Query
Trying to incorporate IIF in Select Statement
MS Access 2010 Issue
How to filter by date/time in an MS Access report?
How to get keyboard 'Enter' to trigger button press on Access form?
Access Import Error -1- 0
Highlight rows in listbox from values in recordset
How to activate button if a value is less than zero?
ms access query to join date table to Timesheet table
Forcing Microsoft Access to acknowledge that the a Microsoft Access ADE file exists
Error importing MS Access table to SAS
Data type mismatch in criteria expression Access error
MS Access: JOIN expression not supported
How to segregate a single value from a query in MS Access
Using a LocalDB database from MS Access