473,385 Members | 1,772 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,385 software developers and data experts.

about date add in access

how can i add a month in last date in report in access.
like 3-6-11 after adding a month the date will be 3-7-11 after adding a month the date will be 3-8-11 then 3-9-11,3-10-11........
Sep 17 '11 #1
3 2416
Rabbit
12,516 Expert Mod 8TB
It doesn't sound like you want to add months at all. It looks like you want to add a day.
Sep 17 '11 #2
it is for the installment...
Sep 18 '11 #3
jimatqsi
1,271 Expert 1GB
Rabbit, the poster is using the European date formatting, so the month is in the middle.

The solution is to use the DateAdd function. It looks like this:
Expand|Select|Wrap|Line Numbers
  1. NewDate = DateAdd('m',1,OriginalDate) ' 1 month being added to OriginalDate
You may also want to look at function DateSerial, as it is often helpful in creating dates. For your problem it could be used like this:
Expand|Select|Wrap|Line Numbers
  1. NewDate=Dateserial(Year(OriginalDate),Month(OriginalDate+1),Day(OriginalDate)
  2.  
DatePart is also a helpful function. Have fun learning about these helpful functions :)

Jim
Sep 18 '11 #4

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

Similar topics

2
by: | last post by:
hi guys, my problem is when to get the date 3 day early, example if the date is 7/10/2004 and i want to get the date of 3 day early like 4/10/2004, do u guys have any idea.....thanks ...
6
by: Lee | last post by:
Thanks for the many responses to my original posting on 2/13 in which I asked for help about record corruptions which were occuring in a Access 2k table. After reading, printing and reading again...
4
by: ad | last post by:
I want to develop DataBase application. How about Data Access Application Block? Is it useful?
5
by: Donkey | last post by:
Hello, I want to find out how many digits does each date type have and how many bytes does it occupy in memory, so I wrote a program below: #include <stdio.h> const long double...
0
by: delso_it | last post by:
Hi ...can u help me how to creat a expiretion date access program like demo program...will be expire after 15days or 3days...:)
14
by: pdavis06 | last post by:
I know that there is a thread about this, but I was unable to add to it; I just joined. The problem is that I do not want to change the date format for the entire database output, merely for a header...
1
by: amanda27 | last post by:
Right now I have a formula in the criteria of a query that tells it to pull data (from a datetime stamp field) with the date that is less than or equal to this Friday's date but I need it to not pull...
1
by: =?Utf-8?B?U00=?= | last post by:
Hi, We are trying to access a .net dll based method from classic asp code. When the method is accessed, system gives a message "You are about to access a Activex component". How do we suppress or...
3
by: Salad | last post by:
I have Microsoft Office Professional 2003 and the computer I connect to also has A2003 retail. The others in that office use Access 2003 runtime. Q1) I wanted to see if they were up-to-date on...
4
by: muddasirmunir | last post by:
I am using vb6. Now , I am facing a very strange error. I think it might be due to some other problem rather coding not sure. Actually , i have put a datepicker in the form and at the load even...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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,...

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.