473,405 Members | 2,261 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,405 software developers and data experts.

Automatically scroll through records

Hi Everybody

Access 2000 Windows xp

On a form with a single command button connected to a database of 1
thousand records.

I would like to be able to press the command button and automatically
scroll through the records as quickly as possible. annd then stop at
the end of the recordset.

Something like this below but continuous.

Private Sub CmdScroll_Click()
DoCmd.GoToRecord , , acNext
End Sub

Thanks

Apr 13 '06 #1
11 7274
Hi Everybody

Oops! Should have read:

Access 2000 on Windows xp
On a form connected to a database of 1 thousand records.....there is
command button CmdScroll
I would like to be able to press the command button and automatically
scroll through the records as quickly as possible. and then stop at
the end of the recordset.
Something like this below but continuous.
Private Sub CmdScroll_Click()
DoCmd.GoToRecord , , acNext
End Sub
Thanks

Apr 13 '06 #2
TC
Why not use the vertical scrollbar? If you click & hold in the right
place, the data will scroll downwards as fast as it can, without the
need for any code.

HTH,
TC (MVP Access)
http://tc2.atspace.com

Apr 13 '06 #3
Hi TC
Thanks for the swift reply.........I am probably not explaining myself
correctly.

What I am trying to do is to go from record to record by clicking on
the CmdScroll.
Like the normal go to next record......but........go to next record
........go to next record .......go to next record .......until it
reaches the eof.

I suppose the navigation buttons at the bottom of an Access WIndows
form is the effect I'm trying to achieve.

Apr 13 '06 #4
TC
If you're trying to achieve the same effect as the navigation buttons
at the bottom of a form - why don't you just use those buttons? Why do
you want to write code for something that Access already provides for
you?

TC (MVP Access)
http://tc2.atspace.com

Apr 13 '06 #5
Try setting the "Auto Repeat" Property (in the "Other tab of the Properties
window) to Yes (True).

--
HTH
Van T. Dinh
MVP (Access)

"bobdydd" <re**************@yahoo.co.uk> wrote in message
news:11*********************@t31g2000cwb.googlegro ups.com...
Hi Everybody

Access 2000 Windows xp

On a form with a single command button connected to a database of 1
thousand records.

I would like to be able to press the command button and automatically
scroll through the records as quickly as possible. annd then stop at
the end of the recordset.

Something like this below but continuous.

Private Sub CmdScroll_Click()
DoCmd.GoToRecord , , acNext
End Sub

Thanks

Apr 13 '06 #6
I never used this property so I just tried.
==> don't think this works for record-navigation.

Anyone uses this property? For what purpose ?

Arno R

"Van T. Dinh" <Va***********@discussions.microsoft.com> schreef in bericht news:%2****************@TK2MSFTNGP03.phx.gbl...
Try setting the "Auto Repeat" Property (in the "Other tab of the Properties
window) to Yes (True).

--
HTH
Van T. Dinh
MVP (Access)



"bobdydd" <re**************@yahoo.co.uk> wrote in message
news:11*********************@t31g2000cwb.googlegro ups.com...
Hi Everybody

Access 2000 Windows xp

On a form with a single command button connected to a database of 1
thousand records.

I would like to be able to press the command button and automatically
scroll through the records as quickly as possible. annd then stop at
the end of the recordset.

Something like this below but continuous.

Private Sub CmdScroll_Click()
DoCmd.GoToRecord , , acNext
End Sub

Thanks


Apr 13 '06 #7
It works for rec nav if you place the control on a form used as a Subform.
http://www.lebans.com/recnavbuttons.htm
RecordNavigationButtons is an MDB containing code to replace the standard
Navigation Buttons. The custom buttons exactly emulate the standard
navigation bar including the autorepeat property.
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Arno R" <ar***********@tiscali.nl> wrote in message
news:44**********************@text.nova.planet.nl. ..
I never used this property so I just tried.
==> don't think this works for record-navigation.

Anyone uses this property? For what purpose ?

Arno R

"Van T. Dinh" <Va***********@discussions.microsoft.com> schreef in bericht
news:%2****************@TK2MSFTNGP03.phx.gbl...
Try setting the "Auto Repeat" Property (in the "Other tab of the
Properties
window) to Yes (True).

--
HTH
Van T. Dinh
MVP (Access)

"bobdydd" <re**************@yahoo.co.uk> wrote in message
news:11*********************@t31g2000cwb.googlegro ups.com...
Hi Everybody

Access 2000 Windows xp

On a form with a single command button connected to a database of 1
thousand records.

I would like to be able to press the command button and automatically
scroll through the records as quickly as possible. annd then stop at
the end of the recordset.

Something like this below but continuous.

Private Sub CmdScroll_Click()
DoCmd.GoToRecord , , acNext
End Sub

Thanks


Apr 13 '06 #8
does
DoCmd.GoToRecord , , acLast

not do what you want to do for you

or
DoCmd.GoToRecord , , acLast

DoCmd.GoToRecord , , acPrevious a few times to have some of
them show

Apr 13 '06 #9
Arno

I referred to the CommandButton as stated by the O.P., not the Navigation
Bar at the bottom of the Datasheet / Form.

--
HTH
Van T. Dinh
MVP (Access)

"Arno R" <ar***********@tiscali.nl> wrote in message
news:44**********************@text.nova.planet.nl. ..
I never used this property so I just tried.
==> don't think this works for record-navigation.

Anyone uses this property? For what purpose ?

Arno R

Apr 13 '06 #10
I placed a commandbutton in the header of a continuous form.
I coded the button to go to the next record on_Click
I did set the Autorepeat-property to 'yes'
But: it did not work when I clicked with the mouse ... focus only moved one record.

Arno R
"Van T. Dinh" <Va***********@discussions.microsoft.com> schreef in bericht news:uM**************@TK2MSFTNGP02.phx.gbl...
Arno

I referred to the CommandButton as stated by the O.P., not the Navigation
Bar at the bottom of the Datasheet / Form.

--
HTH
Van T. Dinh
MVP (Access)



"Arno R" <ar***********@tiscali.nl> wrote in message
news:44**********************@text.nova.planet.nl. ..
I never used this property so I just tried.
==> don't think this works for record-navigation.

Anyone uses this property? For what purpose ?

Arno R


Apr 13 '06 #11
It is possible that one of the Form Events in changing the current record
stops the AutoRepeat action (because the CommandButton will lose the focus
briefly???)

It sounds like Stephen Lebans' method (Subform) is the way to go.

--
HTH
Van T. Dinh
MVP (Access)


"Arno R" <ar***********@tiscali.nl> wrote in message
news:44**********************@text.nova.planet.nl. ..
I placed a commandbutton in the header of a continuous form.
I coded the button to go to the next record on_Click
I did set the Autorepeat-property to 'yes'
But: it did not work when I clicked with the mouse ... focus only moved one
record.

Arno R


Apr 14 '06 #12

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

Similar topics

1
by: jason | last post by:
Hello. I've written this web application in asp.net and have a textarea what I will use like a chat box. The box will be frequently refreshing. I need the textarea to *automatically* scroll to...
11
by: Matt | last post by:
Hi everyone, still pretty new to MySQL. I was wondering if there is a way to automatically filter records based on a mysql userlogin name?? I have serveral databases that I want to combine in...
3
by: Mark | last post by:
Hi all, What I am trying to achieve is for a user to enter a colleague identification number into field . Then they are to add the first date of holiday into field . Finally they are to add the...
0
by: Buddhist[CHinA] | last post by:
I got a line number, and I wanted to display that line in the middle of a RichTextBox. Can someone give me a hint to do it? Thx
1
by: alonzo | last post by:
Hi; I'm implementing a fairly simple database table editting form in ASP.NET 2.0 using the gridview. I enabled AutoGenerateEditButton to add row editting functionality. One little quirk I'd like to...
1
by: scrapamy | last post by:
I'm using Access 2003 and have looked through this forum and found a few topics that are quite close but haven't given me the answer I need. I have one form with just two fields (number & name)...
1
by: RamanS | last post by:
I have a form with 2 tabs and a header. Tab1 has some text fields on it and button. At form load the 2nd tab is not visible. When i enter some text in the fields under Tab1 and then click the...
1
by: Robert Dufour | last post by:
Vs2005, .Net 2.0, vb.Net, Winforms I have a form with a binding source, a binding navigator, a table adapter and a dataset (all using sql 2005 same table, to keep it simple) When the user tries...
2
by: ilikebirds | last post by:
Access 2003: I notice that on a form there is a menu for RECORDS - Data Entry. What occurs here is when data is updated and the option is selected It enters the data into the table and starts...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.