"auto repeat" for a command button

M

max

Hi
when I use the next record button on the navigation bar below, if I hold down the button, the records move rapidly toward the last one. I find this very handy when I have jump a lot of record ahead or back
Anyway I had to create a customized navigation bar on the form, but if I hold down the button, the current record does not move
Does anybody know if there is a trick to obtain the same behaviour of the default NextRecord button in the navigation bar

Any help very much appreciated

Thanks :)
 
K

Kailash Kalyani

I gather that you must be using the event on_click or on_enter. Maybe you
could use the mouse_up and down event, but thats not too easy and I don't
think you could reproduce the behavior easily.


--
Kailash Kalyani
MEA Developer Support Center
ITWorx on behalf Microsoft EMEA GTSC

max said:
Hi,
when I use the next record button on the navigation bar below, if I hold
down the button, the records move rapidly toward the last one. I find this
very handy when I have jump a lot of record ahead or back.
Anyway I had to create a customized navigation bar on the form, but if I
hold down the button, the current record does not move.
Does anybody know if there is a trick to obtain the same behaviour of the
default NextRecord button in the navigation bar?
 
S

Stephen Lebans

YOu have to move your CommandButtons to a SubForm in order to be able to
use the AutoRepeat property. For a sample see:
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.


max said:
Hi,
when I use the next record button on the navigation bar below, if I
hold down the button, the records move rapidly toward the last one. I
find this very handy when I have jump a lot of record ahead or back.
Anyway I had to create a customized navigation bar on the form, but if
I hold down the button, the current record does not move.
Does anybody know if there is a trick to obtain the same behaviour of
the default NextRecord button in the navigation bar?
 
M

max

Hi all
thank you Stephen
I've tried your code, it works great and it is also full of other hints..
;)

many thanks
Massim


----- Stephen Lebans wrote: ----

YOu have to move your CommandButtons to a SubForm in order to be able t
use the AutoRepeat property. For a sample see
http://www.lebans.com/recnavbuttons.ht
RecordNavigationButtons is an MDB containing code to replace th
standard Navigation Buttons. The custom buttons exactly emulate th
standard navigation bar including the autorepeat property

-

HT
Stephen Leban
http://www.lebans.co
Access Code, Tips and Trick
Please respond only to the newsgroups so everyone can benefit


max said:
Hi
when I use the next record button on the navigation bar below, if
hold down the button, the records move rapidly toward the last one.
find this very handy when I have jump a lot of record ahead or back
Anyway I had to create a customized navigation bar on the form, but i
I hold down the button, the current record does not move
Does anybody know if there is a trick to obtain the same behaviour o
the default NextRecord button in the navigation bar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top