If this is data entry, rather than editing data, you might want to consider
using a DefaultValue of =Date(), and allowing the user to overtype it if
that is not what they want. Of course, if you want both date and time, use
the builtin Now() function instead of Date().
Larry Linson
Microsoft Access MVP
"javatiger" <ti*******@yahoo.com> wrote in message
news:96**************************@posting.google.c om...
I have a text box that I need to enter the date into on mouse click.
Could anyone give me the code please?