Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Record number x of y 1

Status
Not open for further replies.

yoshi88

Technical User
Mar 18, 2001
48
CA
I dont want to use the navigation bar in a form, but I want the user to know how many record there is and on wich he is working on. I create an unbound text box with this code in the control source.

=[CurrentRecord] & " of " & Count(*)

Its working well, but if I add a new record the "of y" section doesn't uptdate. I tried many thing like after update, a requery, ... but it never work. The only way to refresh it is to close the form and to open it again. Does anyone has any idea.

François
 
I tried to solve this, and like you, I could not. However, in the property sheet for your form, select the "Format" tab, and then select "Yes" for "Navigation Buttons": then the built-in buttons will show at the bottom of your form, and accomplish what you are trying to do. Good luck!
:) Gus Brunston
An old PICKer
padregus@home.com
 
Oops! I re-read your posting just now and understand that you did not want to use the navigation bar. Sorry, I'm not any help at all.
:-I Gus Brunston
An old PICKer
padregus@home.com
 
sub AkarMi()
Dim dk As Recordset
Set dk = Me.RecordsetClone
dk.Bookmark = Me.Bookmark
MsgBox "Total records: " & dk.RecordCount
MsgBox "Current record: " & dk.AbsolutePosition + 1
End Sub

Here it's a had the same problem
 
oh forgotten

put it on current record section of the form


JJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top