Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding date by increments of 1 or -1??????????

Status
Not open for further replies.

jasonz

Technical User
Jul 2, 2001
7
US
I found this answer in the forum, but I don't understand how to make the control button: Here is the information I found:
To provide this functionality in Access, attach this Event Procedure to the KeyPress event of your control.
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
Well anyway, Could someone please tell me the steps from the beginning. The form I want to do this in is "ProblemDOS" , the field that I want to increase or decrease the date by 1 is the "Callbackdate". Please help me figure this out. Thank you.
 
In the keypress event of Callbackdate, put that code verbatim. When a user is in that field, when they press the Plus or Minus key on the keyboard the date will change. HTH

Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top