K
KarenY
Hi, I have learned from here to use a code entry as a date. It works out
great and fast for the users to input the date on a form. I have set up for
a maximum of 8 days (8 keys), however some users may be out for a long
vacation, the date-field will be input manually. I don't know how to make
this field for both possiblities, i.e. it can be input through a key or
manually input the date.
Because of the following setting, the users can't input the date manually in
the field.
Please help what should I add the "extra" :
Private Sub MyField_KeyPress(KeyAscii As Integer)
Select Case KeyAscii
Case 48 '0
KeyAscii = 0
Screen.ActiveControl = Date
Case 49 '1
KeyAscii = 0
Screen.ActiveControl = Date - 1
End Select
I have set up up to the Case 55 for Date - 6, etc.
Please help to add an extra possibility to allow a manual date input in
MyField.
thanks
Karen
great and fast for the users to input the date on a form. I have set up for
a maximum of 8 days (8 keys), however some users may be out for a long
vacation, the date-field will be input manually. I don't know how to make
this field for both possiblities, i.e. it can be input through a key or
manually input the date.
Because of the following setting, the users can't input the date manually in
the field.
Please help what should I add the "extra" :
Private Sub MyField_KeyPress(KeyAscii As Integer)
Select Case KeyAscii
Case 48 '0
KeyAscii = 0
Screen.ActiveControl = Date
Case 49 '1
KeyAscii = 0
Screen.ActiveControl = Date - 1
End Select
I have set up up to the Case 55 for Date - 6, etc.
Please help to add an extra possibility to allow a manual date input in
MyField.
thanks
Karen