473,396 Members | 2,147 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,396 software developers and data experts.

How do I get the date on a form to =now() after I select a check box?

1
the attachment shows the part of the form that requires this feature
Attached Images
File Type: jpg chg date.jpg (38.8 KB, 108 views)
Sep 16 '10 #1
2 1103
munkee
374 256MB
Place a text box where you wish the now() to show up as per your image.

Then in the onclick event of the checkbox use similar to the following code:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Check75_Click()
  2. Me.txtbox = Now()
  3. End Sub
Sep 16 '10 #2
liimra
119 100+
You can set the value using the AfterUpdate event of the Check Box. It can be done by macros or VB.
Macros:
Select the CheckBox --> Field Property Sheet --> Event --> Macro Builder --> Show All Actions. Now you use the SetValue action where the Item is the Name of the field you want to populate the Now() with, and Expression is Date().


Regards,
Ali
Sep 16 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Darren | last post by:
Hello, How would I write in SQL or ASP the following?: Count number of Database Records between NOW and 24 HOURS EARLIER? I know how to retrieve recordsets etc - its just the date thing I cant...
6
by: Adam Knight | last post by:
I have stored a date value using the now function. This stores dates like this: 5/3/2004 3:59:23 PM I am wanting to run a query that compares todays date with the date in the db field. I...
2
by: wireless | last post by:
In our database is a decimal field with format YYMMDDhhmmss.9999999999 where the 9s are random digits. I'm trying to strip off just the YYMMDD and put it in date form. So far I came up with:...
1
by: Rupert Street | last post by:
Hi I have a form for staff to enter their work details into the Timesheet table that I have setup. I have included a combo box to select a client's ProjectNo from the Projects table selecting...
4
by: Lisa Jones | last post by:
Hi Can someone tell me How do you get selected date form MonthCalendar control Thanks so muc Lisa
2
by: Arnold | last post by:
Greetings Gurus, In a report showing the names of students and their progress, I am getting an error in the name field (Name: #Error). The report gets its data from an unbound form containing...
4
by: tarafinlay | last post by:
Hi all, I am new to access and am finding it a bit unintuitive having worked with SQL server in the past... And I am in a bit of a hurry because my employer wants me to crank something out which...
1
by: ranjit189 | last post by:
i got the date from oracle database using servlet programming string dt=x.getDatabaseValue("select sysdate from dual"); my problem is i got nother date i have entered now i want to compare both...
3
by: janetopps | last post by:
I have a news website, with asp pages, which was on Access, and i upgraded to MySQL, i used Bullzip to transfer the data. It had about 1000 pages, which im now able to pull up on the public side. Im...
3
by: Tricia Kinney | last post by:
How do I move data on form with checked check box to text boxes on continuous main form? Each record on the continuous form could possible have 25 questions and answers to be moved. The form with...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.