Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 1st, 2004, 09:50 AM
Posts: n/a
Default Month Function needed??

Hi, Everyone

I have an Access database linked tables to our main server (Dbase system), recently, we transfer data into the new system, the server date wrongly set one month behind, so all DATE field data is now one month wrong. I would like to update to the correct date, should be one month ahead.

Here some examples:

Wrong Date corrected Date (should be)

28/02/2004 28/03/2004
25/12/2003 25/01/2004
30/05/2003 30/06/2003

and so on...

I would like to find out is there any function to add one month(NOT 30days) to the field, can anyone help?

Thanks in advance


Reply With Quote
  #2 (permalink)  
Old April 1st, 2004, 10:01 AM
Friend of Wrox
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post

take a look at the DateAdd function, example
UPDATE yourtable
SET thedatefield = DateAdd("m", 1, thedatefield)
Reply With Quote
  #3 (permalink)  
Old April 1st, 2004, 10:38 AM
Posts: n/a

Thank you very much, it works very nicely.


Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Needed: StreamWriter Function OnceANewbie Visual Basic 2005 Basics 1 August 10th, 2009 05:50 AM
Converting month name to month number kalyanykk SQL Server 2005 7 August 19th, 2008 10:37 PM
query Current Month, Month+1, Month+2, Month+3 anterior Access 2 September 24th, 2006 08:25 PM
get current month cathiec SQL Language 2 February 23rd, 2006 09:58 AM
Days in a Month jmss66 Classic ASP Basics 3 April 11th, 2005 05:57 PM

All times are GMT -4. The time now is 04:07 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.