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.
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.