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

auto fill two fields base off a date

1
What I have is three fields ... EPIC Date, Shipping Date, Email Date
What I want to do is from the date in "EPIC Date" have it auto fill the other two fields. the shipping date should be 14 days before the "EPIC Date" and the Email Date should be 3 days
Feb 11 '14 #1
3 1008
mcupito
294 256MB
Look into the
Expand|Select|Wrap|Line Numbers
  1. DateAdd()
function.

http://office.microsoft.com/en-us/ac...001228810.aspx

So on the AfterUpdate event on the EPIC Date "field", use the DateAdd() function to add dates into your other two fields based on what you already know.
Feb 12 '14 #2
zmbd
5,501 Expert Mod 4TB
Any reason why you are storing the calculated data?
Normally one would do this in the query with a calculated field, only storing something like the actual shippment date for record keeping.
Feb 12 '14 #3
NeoPa
32,556 Expert Mod 16PB
MCupito points you in the right direction for the how, but, like zmbd, I'd advise that you don't store calculated data in a database. Calculate it when needed instead.

For more on this see Database Normalisation and Table Structures.
Feb 13 '14 #4

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

Similar topics

3
by: Yan Roosens | last post by:
Hello all, I'm a total newbie with SQL Server 2000 and I have a little problem when moving a database form Access 2000 to SQL Server 2000. In the Access database, each table has an...
1
by: ChuckDubya | last post by:
It's common in web browsers to have a text auto-fill function for personal information or passwords or whatnot. The flavor that I'm referring to is the kind that pops up as you're typing the word,...
2
by: Edwin Knoppert | last post by:
I would like to instruct a grid which autofill's the columns to exclude time or date from a date field when date or time is 0. Date and time can be stored in a date field, my grid shows for...
2
by: Elainie | last post by:
I have been trying to auto fill fields with DLookup - but it doesn't seem to work..... can you help... I have a name field and I want the address to automatically fill in when the name field...
0
by: dd4611 | last post by:
Please, I need help in creating a macro to auto fill a range with beginning and ending date variables.
2
by: Don Vick | last post by:
I am using Access 97. I have a customer table including address. I want to create a reservation form that automatically inserts the appropriate address (from the customer table) once a customer has...
0
by: KelHemp | last post by:
Greetings, I've been using this site for lots of access help in the past, and it's very helpful! I have a new complexity for you all. Reworking a form to record 70-80 years of oil production on...
9
by: DAHMB | last post by:
I have a Report in which I have one of the fields set up to launch a form with the On Click event. I would like to have the form launch and auto fill a field with the value of the field clicked in...
4
by: Samuel Murray | last post by:
G'day everyone I'm not a JavaScript programmer, so I wonder if you could point me in the right direction or simply tell me how to do the following. I'd like to submit a patch for the...
10
by: Charles Richmond | last post by:
Is there some parameter I can set via Javascript that will cause the browser to *not* auto-fill forms, regardless of the browser settings??? --...
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
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: 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
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
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,...
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.