S
snsd
Guest
I am a complete newbie. With some help, I managed to compile the following code to enter the Date and Time in a field on a form whenever you click on the field. I would like to change the functionality so that the Date and Time is entered when I type the letter "n" in the field versus when I click on the field. I'm hopelessly struggling with the event "On Key Press". I'm not even sure it will do what I want it to do.
Bottom line: What is the most effective way of entering the current date and time in a field outside of using Access's built-in ctrl+: and ctrl+shift+: keyboard commands. (I'm also open to using a command button or other efficient way to accomplish the same task.)
Private Sub VendorInformationAvailableDateAndTime_Click()
Me.VendorInformationAvailableDateAndTime = Now()
End Sub
I do NOT want the field to default to the current date and time. I need to have the ability to enter the current date and time at my option.
Any help is appreciated.
Dave
Bottom line: What is the most effective way of entering the current date and time in a field outside of using Access's built-in ctrl+: and ctrl+shift+: keyboard commands. (I'm also open to using a command button or other efficient way to accomplish the same task.)
Private Sub VendorInformationAvailableDateAndTime_Click()
Me.VendorInformationAvailableDateAndTime = Now()
End Sub
I do NOT want the field to default to the current date and time. I need to have the ability to enter the current date and time at my option.
Any help is appreciated.
Dave