adding 6 months to a date

Acehole

Board Regular
Joined
Sep 29, 2009
Messages
249
hi all,
first timer on here so be nice, I have a form and on said form I have a date that has been entered, lets say todays date. how do I add 6 months to this date and display It on the form?
thanks I advance
Acehole
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Acehole

Board Regular
Joined
Sep 29, 2009
Messages
249
hello and thanks for the replies
I have a field on my table with a date In it, how do I auto populate the next field with a date six months from the previous date field, the field is called LastCall and has date in it. the next field is called NextCall I want this to populate with a date six month after LastCall date if that makes sense
regards
acehole
 
Upvote 0

alansidman

Well-known Member
Joined
Feb 26, 2007
Messages
7,493
Office Version
  1. 365
Platform
  1. Windows
in the field type =DateAdd("m",6,[LastCall])
 
Upvote 0

Acehole

Board Regular
Joined
Sep 29, 2009
Messages
249
hi there, thanks for the reply,
however when I put that I the field nothing happens ?it stays there as text?
thanks
acehole
 
Upvote 0

Acehole

Board Regular
Joined
Sep 29, 2009
Messages
249
hello apologies for the bump, anyone got any idea?
regards
acehole
 
Upvote 0

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
67,156
Office Version
  1. 365
Platform
  1. Windows
hi there, thanks for the reply,
however when I put that I the field nothing happens ?it stays there as text?
Where exactly are you putting it?
Are you putting it in the Control Source of an Unbound field on your Form?
 
Upvote 0

Acehole

Board Regular
Joined
Sep 29, 2009
Messages
249
hello,
thanks for the reply, I can get it to give me the date on the form, was trying to populate the table.
regards acehole
 
Upvote 0

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
67,156
Office Version
  1. 365
Platform
  1. Windows
thanks for the reply, I can get it to give me the date on the form, was trying to populate the table.
General rule of thumb: there is seldom a reason to store a value which can be calculated in an underlying table. If you can calculate it at anytime, there is usually no reason to store it (and doing so could actually violate the rules of Database Normalization and undermine the integrity of your database).

What do you think you need to store it instead of just calculating it when needed?
 
Upvote 0

Forum statistics

Threads
1,191,690
Messages
5,988,061
Members
440,125
Latest member
vincentchu2369

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top