Go Back  PPRuNe Forums > Misc. Forums > Computer/Internet Issues & Troubleshooting
Reload this Page >

Adding 10 weeks to a date in MS Access 2000

Wikiposts
Search
Computer/Internet Issues & Troubleshooting Anyone with questions about the terribly complex world of computers or the internet should try here. NOT FOR REPORTING ISSUES WITH PPRuNe FORUMS! Please use the subforum "PPRuNe Problems or Queries."

Adding 10 weeks to a date in MS Access 2000

Thread Tools
 
Search this Thread
 
Old 11th Feb 2002, 03:14
  #1 (permalink)  
Thread Starter
 
Join Date: Aug 2001
Location: Berkshire, United Kingdom
Posts: 28
Likes: 0
Received 0 Likes on 0 Posts
Post Adding 10 weeks to a date in MS Access 2000

Does anyone know how you can add a number pd days/weeks/months/years etc to a date in Access. i.e. how do you make a query to add two weeks to an already inputtued date in a table.

Any help much appreciated

Michael Fuller PAFP. [email protected]
mfuller_uk is offline  
Old 11th Feb 2002, 04:17
  #2 (permalink)  
Agent86
Guest
 
Posts: n/a
Post

Michael,

The function you use is DateAdd. Check the help re this but basically.

Dateadd("X",Y,Z)

X is the interval => s-seconds n-minutes (!!!). .d-days,w- weekdays (!!!),ww-weeks, m-months,y-year

Y is the number of intervals (can be negative). .Z is the date you want to change.

If you just want a query to output this, just type in the the Field Dateadd("x",Y,Z) and make Z the field you want to add the interval to ..ENCLOSED in square brackets[field1].

If you want update the data use an update query

Be very careful!!. .Enter the formula as above in the "update to" field of the field you want to change.

Make sure that your Criteria is correct before running the Query.

MAx
 
Old 11th Feb 2002, 16:20
  #3 (permalink)  
Thread Starter
 
Join Date: Aug 2001
Location: Berkshire, United Kingdom
Posts: 28
Likes: 0
Received 0 Likes on 0 Posts
Post

Thanks alot i will give that a try. I was sure that there must have been a function in access to do what i wanted, it is just a matter of knowing what it is.

Michael
mfuller_uk is offline  
Old 12th Feb 2002, 18:27
  #4 (permalink)  
Agent86
Guest
 
Posts: n/a
Post

Mike,

yes, the learning curve in Access is a bit like a brick wall. I found that thinking of what I wanted and then some working thru the help system worked most times.

MAx
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service

Copyright © 2024 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.