"auto repeat" for a command button

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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 :)
 
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?
 
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?
 
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
 
Back
Top