Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Access
3rdpartyusrgrp
access
activexcontrol
adp.sqlserver
commandbarsui
conversion
dataaccess.pages
developers.toolkitode
devtoolkits
externaldata
forms
formscoding
gettingstarted
internet
interopoledde
macros
modulescoding
modulesdaovba
modulesdaovba.ado
multiuser
odbcclientsvr
queries
replication
reports
security
setupconfig
tablesdbdesign
  
 
date: Tue, 8 Jul 2008 20:04:04 -0700,    group: microsoft.public.access.forms        back       


Date() + 3 Months. Now how do I tell Access.   
I know this should be simple but....
 I have a Text box that I want to show what date it will be in 3 months.
date: Tue, 8 Jul 2008 20:04:04 -0700   author:   Kevbro7189

Re: Date() + 3 Months. Now how do I tell Access.   
Your post isn't very clear. DO you want the textbox to show the date three
months from the current date, or do you want it to show three months from a
certain date? At any rate, the syntax would be 

Me.DateTextbox = DateAdd("m",3,Date)

for three months from the current date. Simply substitute any other given
date for  Date() if you want three months from a given date.

-- 
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via http://www.accessmonster.com
date: Wed, 09 Jul 2008 03:26:43 GMT   author:   Linq Adams via AccessMonster.com u28780@uwe

Re: Date() + 3 Months. Now how do I tell Access.   
I want the Text Box to display the date it will be 3 months from whatever 
date the user is using the program.  

I tried to use the equation you posted but I get nothing other than #NAME?.   




"Linq Adams via AccessMonster.com" wrote:

> Your post isn't very clear. DO you want the textbox to show the date three
> months from the current date, or do you want it to show three months from a
> certain date? At any rate, the syntax would be 
> 
> Me.DateTextbox = DateAdd("m",3,Date)
> 
> for three months from the current date. Simply substitute any other given
> date for  Date() if you want three months from a given date.
> 
> -- 
> There's ALWAYS more than one way to skin a cat!
> 
> Answers/posts based on Access 2000/2003
> 
> Message posted via http://www.accessmonster.com
> 
>
date: Tue, 8 Jul 2008 21:05:00 -0700   author:   Kevbro7189

Re: Date() + 3 Months. Now how do I tell Access.   
On Tue, 8 Jul 2008 21:05:00 -0700, Kevbro7189
 wrote:

>I want the Text Box to display the date it will be 3 months from whatever 
>date the user is using the program.  
>
>I tried to use the equation you posted but I get nothing other than #NAME?.   

Set the Control Source property of a textbox on the form to

=DateAdd("m",3,Date())

The code Linq posted works just fine in a VBA module; the syntax is just a bit
different in a form.
-- 

             John W. Vinson [MVP]
date: Wed, 09 Jul 2008 00:19:32 -0600   author:   John W. Vinson

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us