473,395 Members | 1,949 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Onclick get date???

I have a text box that I need to enter the date into on mouse click.
Could anyone give me the code please?
Nov 12 '05 #1
4 2179
CRH
Hmmm...
try:

Private Sub Text0_Click()
Text0 = Format(Now(), "short date")

End Sub

"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?

Nov 12 '05 #2
"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?


Me!TextBoxName = Date()
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 12 '05 #3
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?

Nov 12 '05 #4
"CRH" <cr*****@hotmail.com> wrote in message news:<C2**********************@newssvr28.news.prod igy.com>...
Hmmm...
try:

Private Sub Text0_Click()
Text0 = Format(Now(), "short date")

End Sub

"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?


Thanks for that, works like a treat :-)
Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Greg | last post by:
I have a page that searches a database by a repairman's name and by a date range. It pulls info by the repairman's name but pulls all info in the database regardless of the date. Below is the code...
8
by: KS | last post by:
Just to show some code to show the consept. <img id="date" onclick="javascript:show_calendar();" src="/PlexSysWeb/images/show-calendar.gif" width=20 height=18 border=0> What i want the...
2
by: techfuzz | last post by:
I scoured this group and others looking for the best way to disable a button after the first click to prevent multiple submissions, but never did find anything that worked like they said it would. ...
5
by: kai | last post by:
Hi, In ASP.NET , what is the difference between OnClick and Click events for a button? Because we have button click event, it can trigger events, why we still need OnClick? Please help. ...
3
by: Bob Sanderson | last post by:
I have a PHP web page which uses a HTML form. I would like to enter dates into the date fields using a JavaScript calendar, similar to the way phpMyAdmin does. Can anyone recommend a JavaScript...
6
by: Marko Mikkonen | last post by:
I'm trying to make code which does something when user clicks a row in a table. I tried a javascript code from JS-Examples.com. It works on Firefox, but not on Internet explorer 7. Here's the code:...
1
by: Yas | last post by:
Hello I've got the following Javascript for a web calendar popup that outputs the date in 4/24/2008 (m/d/yyyy). How can i modify it to output dd/mm/yyyy e.g. 24/04/2008. So all outputs are in...
1
by: Yas | last post by:
Hello I've got the following Javascript for a web calendar popup that outputs the date in 4/24/2008 (m/d/yyyy). How can i modify it to output dd/mm/yyyy e.g. 24/04/2008. So all outputs are in...
6
by: tomaz | last post by:
<SCRIPT LANGUAGE=javascript> function tdclick (ObjTD) { ArrLinks = ObjTD.getElementsByTagName ("A"); document.getElementById("link").onclick(); } </SCRIPT>
1
by: xtremebass | last post by:
Hello Bytes, i have a calender program which is created by using Javascript. when i execute that program using Internet Explorer,it works properly but when i tried in Mozilla firefox it didnt...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.