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!

Hi there! I have a form. (obviou

Status
Not open for further replies.

katiekat

Technical User
Jun 6, 2000
300
US
Hi there!

I have a form. (obviously) I would like to have a field(s) that take the place of the reccord navigation. I know you can just leave the it on, but I would rather not. I have all the navigation buttons, but I need to know how to do the "Reccord x of y" calculations. I tried a dcount expression in the control source, and I can't seem to get that to work, but it's probably a syntax error on my part. Could I please get a general example? Thanks thanks and more thanks! Holy tek-tips batman!:-0
 
Katie:

Put this in your form's On_Current event:

Set recClone = Me.RecordsetClone
recClone.Bookmark = Me.Bookmark

txtRec = recClone.AbsolutePosition + 1
txtTotal = recClone.RecordCount

recClone.Close

Substitute your control names for txtRec and txtTotal.

Larry De Laruelle
larry1de@yahoo.com

 
Thanks Larry! Works like a charm! Huzzah! :-D Holy tek-tips batman!:-0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top