473,398 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Displaying Record Number on Form

I need to display the record number on a form - replacing the Access
Navigation Buttons.

I found a routine on Access Web that is supposed to work but when I use it I
am told that "Object doesn't support this property or method"

The code it uses is placed on the on Current Event and is as follows:

With Me.RecordsetClone
.Bookmark = Me.Bookmark
Me.lblNavigate.Caption = "Record " & _
.CurrentRecord _
& " of " & .RecordCount
End With

This produces the error...

I am using Access 2002. Is there a way to do this in Access 2002?

Mike
Nov 12 '05 #1
2 26725
Newer versions of Access have exposed the form's recordset so that you can use it directly
instead of creating a clone first.

Me.lblNavigate.Caption = "Record " & _
Me.CurrentRecord & " of " _
Me.Recordset.RecordCount

--
Wayne Morgan
Microsoft Access MVP
"Mike" <re******@hotmail.com> wrote in message news:3f******@dnews.tpgi.com.au...
I need to display the record number on a form - replacing the Access
Navigation Buttons.

I found a routine on Access Web that is supposed to work but when I use it I
am told that "Object doesn't support this property or method"

The code it uses is placed on the on Current Event and is as follows:

With Me.RecordsetClone
.Bookmark = Me.Bookmark
Me.lblNavigate.Caption = "Record " & _
.CurrentRecord _
& " of " & .RecordCount
End With

This produces the error...

I am using Access 2002. Is there a way to do this in Access 2002?

Mike

Nov 12 '05 #2
Thanks Wayne... works a treat.

Mike

"Wayne Morgan" <co***************************@hotmail.com> wrote in message
news:vg******************@newssvr31.news.prodigy.c om...
Newer versions of Access have exposed the form's recordset so that you can use it directly instead of creating a clone first.

Me.lblNavigate.Caption = "Record " & _
Me.CurrentRecord & " of " _
Me.Recordset.RecordCount

--
Wayne Morgan
Microsoft Access MVP
"Mike" <re******@hotmail.com> wrote in message

news:3f******@dnews.tpgi.com.au...
I need to display the record number on a form - replacing the Access
Navigation Buttons.

I found a routine on Access Web that is supposed to work but when I use it I am told that "Object doesn't support this property or method"

The code it uses is placed on the on Current Event and is as follows:

With Me.RecordsetClone
.Bookmark = Me.Bookmark
Me.lblNavigate.Caption = "Record " & _
.CurrentRecord _
& " of " & .RecordCount
End With

This produces the error...

I am using Access 2002. Is there a way to do this in Access 2002?

Mike


Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Michael Charney | last post by:
I have a form where records are entered. I have turned off the built in record control. I created buttons to advance and go back through the records as well as an add new record button, but I also...
2
by: chris vettese | last post by:
I've been searching for a few days and have't found the solution I'm looking for. I want to create the following in my form's header...Material: 1 of 15. The first number will change as the user...
0
by: Carl | last post by:
I have a main form with navigation buttons on it and a label showing for example Record 1 of 15 using recordsetclone on it and eveything works fine. When I move through the records the record...
1
by: Scott269 | last post by:
So I've got an old MS Works database I imported into Access. I needed a primary key so I created a record number field that was just the record number I manually inserted when I entered it in the...
3
by: liberatingathena | last post by:
I'm writing you from Alajuela, Costa Rica. It's 4:30 in the morning here and I'm reaching a point of pure desperation as I've been searching the internet all night for a solution. I am not an...
1
by: | last post by:
How can I obtain the record number or row number for a record while in form view? Thank you in advance for any information. R. L.
16
by: usenet | last post by:
I want to be able to use the record numbers of a sub-form, are they available anyhow in VB (Access 2003)? I want to use the sub-form record number as *part* of the primary key for the table...
1
by: chaticathe | last post by:
I am trying to determine the record number of a record in Oracle Forms so I can navigate to that record. I am using the code below but it only gives me the record number of the record I am currently...
2
by: Vinda | last post by:
There was a thread from November 12th, 2005 03:51 PM discussing displaying the current record's record number on a form. Wayne replied to the query that it was possible using the code ...
0
by: kin9kelvin | last post by:
Hi! I have created a form with 2 subforms in it. One of subforms is in a form view and the other subform is in dataview. I was wondering whether i am able to doubleclick on a record in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.