access-training-courses - creating field automatically ins
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » access-training-courses - Creating a field to automatically insert dates from a formula

access-training-courses - Creating a field to automatically insert dates from a formula

The UK's most regular instructor-led training courses.
Training information: access-training-courses · Courses in microsoft access · Microsoft Access Training
See also · microsoft access training · access vba courses · access database course

resolvedResolved · Low Priority · Version Standard

Creating a field to automatically insert dates from a formula

Sara has attended:
Access Introduction course

by - delegate Sara [2 posts] (2007 Oct 26 Fri, 14:15) replyReply

For example, in our personnel database I am amending. I would like to enter the employee start date and then have the probationary date automatically complete for 3 months from that date. Could you explain how I would do this?

Many thanks.

Access Advanced 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003 2008 Dec 3 Wed Southwark 5 book now £219 £235
2003 2008 Dec 19 Fri Bloomsbury 5 book now £219 £235
2003 2008 Dec 24 Wed Bayswater 0 FULL    
2003 2009 Jan 7 Wed Southwark 7 book now £203 £230
2003 2009 Jan 14 Wed Bloomsbury 8 book now £187 £224
2003 2009 Jan 23 Fri Bloomsbury 7 book now £203 £230
Full Schedule: See all 45 Access Advanced course dates.
Bookings currently available until 25th November 2009.

RE: Creating a field to automatically insert dates from a formul

by - trainer Amanda diamond contributer[1240 posts] (2007 Oct 29 Mon, 15:54) replyReply

Hi Sara

Thanks for your question.

To automatically add 3 months to an employee's start date:

1. Create a new query in Design view.

2. From the Tables list, select the table/s that contain the information you want displayed in the query (presumably the table/s that contain employee name and/or ID and start date), then click the Close button.

3. Double-click on the fields you wish to add to the query.

4. In the next available column in the query design area, enter the name you want the field to have (let's call it Probation end date) followed by an expression that will add 3 months to the date in the start date field as follows:

Probation end date:DateAdd("m",+3,[Start date])

To explain:

DateAdd is used to add or subtract a specified amount of time from a field of Date/Time type. "m" indicates that it is months that we are dealing with; +3 indicates that we want to add 3 units of the time period we are dealing with (you would enter a minus symbol to 'subtract' time) and [Start date] (or whatever this field is called in your database) is the field you are adding time to.

5. Make sure there is a tick in the box in the Show: row underneath the Probation end date field.

6. Change to Datasheet view to check the query is working, then save it.

I hope this helps.
Amanda


Related articles

· Microsoft Access Training Opens Doors
· Learn about Subqueries in Access Courses
· Microsoft Access Tighten your Security Controls
· Microsoft Access 2007: New Features
· Want to Become the Office Hero? MS Project Training Could be the Answer

Access tip:

How To Display An '&' In A Label In A Form

To have your label display a sentence with an &(ampersand) in it, like Fox & Hound simply type it as:

Fox && Hound

View all Access hints and tips

Rate this page:
4.0/5 (3 votes cast)
Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information

Training Articles

AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz