Rolling time

C

Chris

I have an event code to roll dates by using +/- keys on numeric pad. The code
is linked to the KeyPress Event. Works great.

I would like to do the same with time. I am undecided if I want to roll
hours, half- or quarter hours.

Will the following code also work? If so, how do I quantify my desired time
frame? I have tried "1" and assuming it might be seconds, many multiples. No
joy!

************** code follows *****************
Select Case KeyAscii
Case 43 ' Plus key
KeyAscii = 0
Screen.ActiveControl = Screen.ActiveControl + 1
Case 45 ' Minus key
KeyAscii = 0
Screen.ActiveControl = Screen.ActiveControl - 1
End Select
************* end code ************

Please be simple, I am not a professional at this.
 

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