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

Calculate future date in access 2007

On my form, I need to be able to have Access autocalculate a 3-month followup:

This is what I have so far:

My field "Web Reviewed Date" and an unbound text box for 3-month follow-up (next review date in my main table)

In the unbound textbox control source, I have put the code =DateSerial(Year([Web Reviewed Date]),Month([Web Reviewed Date])+3,Day([Web Reviewed Date])).

This works just fine.

But I cannot figure out how to tie the unbound text box into my main table for reporting and querying. Please help!
Jan 31 '08 #1
2 7759
MMcCarthy
14,534 Expert Mod 8TB
On my form, I need to be able to have Access autocalculate a 3-month followup:

This is what I have so far:

My field "Web Reviewed Date" and an unbound text box for 3-month follow-up (next review date in my main table)

In the unbound textbox control source, I have put the code =DateSerial(Year([Web Reviewed Date]),Month([Web Reviewed Date])+3,Day([Web Reviewed Date])).

This works just fine.

But I cannot figure out how to tie the unbound text box into my main table for reporting and querying. Please help!
In the form open event you will need to check the system date against this date.
Feb 5 '08 #2
missinglinq
3,532 Expert 2GB
Actually, Access has a function for adding to dates called, oddly enough, DateAdd().

= DateAdd("m", 3, [Web Reviewed Date])

is all you need.

As to "tying it into your main table" you really shouldn't. Instead, you should simply use the same function in a calculated field in a query, using this calculated field in forms/reports when needed. In a blank field in the Query Design Grid enter

FollowUpDate: DateAdd("m", 3, [Web Reviewed Date])

Then in forms/reports simply refer to FollowUpDate, comparing it, as Mary said, to the computer's system date. Welcome to TheScripts!

Linq ;0)>
Feb 5 '08 #3

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

Similar topics

6
by: rohayre | last post by:
Im a long time java developer and actually have never done anything with java scripting. I'd like to write a short simple script for calculating a date in the future based on today's date and a...
8
by: helpless | last post by:
Access 2003 - I am trying to calculate the difference between a specific date 5/1/2007 (not in a data field) and other dates that ARE in a field called Birth Date. I am trying to have it fill into...
5
by: Kevin | last post by:
I have a simple application that handles authentication, and one of the things it checks is password aging. If I have something like this: If ("02/14/2007" <= Date.Today.ToString("MM/dd/yyyy"))...
4
by: neilj | last post by:
I would like to create a field that calculates a date that is 39 months from a date I am entering on a form. Once I fill in a date in a field, I would like to have Access calculate the next field...
2
by: raydar2000 | last post by:
Hi, If someone could please please help me, it would be greatly appreciated I am trying to calculate the time a vehicle has stopped in one place. this is the query that shows where a vehicle...
2
by: bloukopkoggelmander | last post by:
Hi all Right, I dont know if this is possible in Access (2007) or not but here goes. I want to create a form for a vehicle delivery where a user completes say half of it before delivery of the...
0
by: SuzK | last post by:
I am trying to calculate in VBA in Access 2002 a moving average and update a table with the calculations. Fields in my WeeklyData table are Week Ending (date) ItemNbr (double) Sales Dollars...
4
by: Vince | last post by:
Given a week Number, how do I calculate the date that for the Monday of that week?
15
by: student4lifer | last post by:
Hello, I have 2 time fields dynamically generated in format "m/d/y H:m". Could someone show me a good function to calculate the time interval difference in minutes? I played with strtotime() but...
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
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
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,...

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.