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
Access 97 copying field type to other table
A query to combine multiple row values into one field in MS-Access 2003? [duplicate]
set two field primary key
Exporting Foreign Key Definitions as DDL Statements from MS Access
Access Mail Merge to different documents based on specific criteria
I just realized my database is not 1NF compliant. Is it necessary that I rebuild the tables?
MSAccess Error: Class does not support Automation or does not support expected interface
Access 2007 ReportEvents class is not firing events
Access subform in a split view parent - hide from datasheet section
2007 Split database access issues
MS-Access (Forms): allow user to enter invalid data in a bound, typed TextBox, with intent of correcting it programmatically. How?
How to add a checkbox in a form next to a query to append to another table
Access VBA - how to download XML file and enter its data into a recordset
MS-Access Calculating Percentage of Completed Tasks in a Report
How can I import data from a table in MS ACCESS 2007 to another table ? [closed]
How to build a query for getting rows having a blank field in access whose datatype is date?