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

How can I program the “Expired” check box to auto-activate if the “End Date” is in th

2
How can I program the “Expired” check box to auto-activate if the “End Date” is in the past relative to the current date
Feb 6 '15 #1
3 1109
jforbes
1,107 Expert 1GB
That kind of depends on how and when you want this to be triggered. When do you want this to happen? On the opening of a Form? On the creation of a Record? Part of a nightly automatic process?
Feb 6 '15 #2
donkey
2
on an open form afterupdate with

start date example 7/1/2014
date expired 12/31/2014
a check box

How can I program the “Expired” check box to auto-activate if the “End Date” is in the past relative to the current date?
Feb 6 '15 #3
jforbes
1,107 Expert 1GB
Expand|Select|Wrap|Line Numbers
  1. Private Sub txtdate1_AfterUpdate()
  2.     Me.chkExpired.Value = (Me.txtdate1.Value < Me.txtdate2.Value)
  3. End Sub
Feb 6 '15 #4

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

Similar topics

6
by: Piotr Pietrowski | last post by:
Hello everybody, I have a *big* problem. I thought its not that big problem for you professionals... Anyway, I have a begin date which has 3 dropdown boxes (day/Month/Year). The same for the...
1
by: - | last post by:
what is the function to check whether a date, eg 2005-02-44, exists? in php, there is a checkdate() function.
2
by: David Fickbohm | last post by:
People, I am trying to determine the creation date of files in a folder. I am using the following code to find the folder and confirm that files exist in the folder. If someone could give me an...
3
by: David Kuhn | last post by:
I have a query with a date field criteria of: Between And When the query is run, I am asked for the Start date and then the End Date. So far, so good. The records returned are all those in...
2
by: DaveF | last post by:
I am using the following code to see if the image is there, is there a way to check the image date as well? Dim sTxt As String If strURL <> "" Then If Left(LCase(strURL), 7) <> "http://" Then...
9
by: Millie18 | last post by:
Hi, I’m trying to set up a query to find all dates on or between a start and end date. Table name and field names I’ve used: Tbl_bookings Booking No Boarding Arrival Date Boarding Departure...
11
by: Connie via AccessMonster.com | last post by:
Hi Access Building Friends, I am building a database for a manufacturer who needs to know the projected End_Date of each job. I know the Start_Date and the total days required to do the job. ...
5
by: mattia | last post by:
Hi, I'm very new to Access...my company decided we need to have a database and I'm somehow trying to get my arms around this... I'm using a 2003 version of Microsoft Access running on Windows...
1
by: divya birla | last post by:
Posted - 03/29/2011 : 06:34:20 I have a table which contain Topic, Sequence number and no of turns. User input the Single Start date and on the basis of which series of start date and end...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.