A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Dateadd problem



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 17th 06, 01:43 PM posted to microsoft.public.outlook.program_forms
Josianne
external usenet poster
 
Posts: 28
Default Dateadd problem

Hi, I've got a problem with my form auto complete textbox. I've got a textbox
named "FinishDate" and On the load of my form I want to put the initial value
of this field with date of today + 14 days.
I try it with DateAdd function but I'm not sure it is working well or I
think I don't write the good parameters on it.
Thanks for your help!
--
Josianne
Ads
  #2  
Old March 17th 06, 02:07 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Dateadd problem

DateAdd("d", 14, Date)
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Josianne" wrote in message ...
Hi, I've got a problem with my form auto complete textbox. I've got a textbox
named "FinishDate" and On the load of my form I want to put the initial value
of this field with date of today + 14 days.
I try it with DateAdd function but I'm not sure it is working well or I
think I don't write the good parameters on it.
Thanks for your help!
--
Josianne

  #3  
Old March 17th 06, 03:59 PM posted to microsoft.public.outlook.program_forms
Josianne
external usenet poster
 
Posts: 28
Default Dateadd problem

What is the meaning of the "d" the 14 and the date
because I try dateadd("d",14,date) and dateadd("d",14,TODAY) and my fiel on
startup is "Néant".
--
Josianne


"Sue Mosher [MVP-Outlook]" wrote:

DateAdd("d", 14, Date)
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Josianne" wrote in message ...
Hi, I've got a problem with my form auto complete textbox. I've got a textbox
named "FinishDate" and On the load of my form I want to put the initial value
of this field with date of today + 14 days.
I try it with DateAdd function but I'm not sure it is working well or I
think I don't write the good parameters on it.
Thanks for your help!
--
Josianne


  #4  
Old March 17th 06, 04:17 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Dateadd problem

"d" is the unit of time measurement being added.

Date() is a function that returns today's date.

You can learn all about the DateAdd or Date function by typing it into any VBA window, selecting that text and pressing F1.

Is your textbox bound to an Outlook date/time property?
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Josianne" wrote in message ...
What is the meaning of the "d" the 14 and the date
because I try dateadd("d",14,date) and dateadd("d",14,TODAY) and my fiel on
startup is "Néant".
--
Josianne


"Sue Mosher [MVP-Outlook]" wrote:

DateAdd("d", 14, Date)
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Josianne" wrote in message ...
Hi, I've got a problem with my form auto complete textbox. I've got a textbox
named "FinishDate" and On the load of my form I want to put the initial value
of this field with date of today + 14 days.
I try it with DateAdd function but I'm not sure it is working well or I
think I don't write the good parameters on it.
Thanks for your help!
--
Josianne


  #5  
Old March 17th 06, 04:29 PM posted to microsoft.public.outlook.program_forms
Josianne
external usenet poster
 
Posts: 28
Default Dateadd problem

Is your textbox bound to an Outlook date/time property?
Yes, I already do it
--
Josianne


"Sue Mosher [MVP-Outlook]" wrote:

"d" is the unit of time measurement being added.

Date() is a function that returns today's date.

You can learn all about the DateAdd or Date function by typing it into any VBA window, selecting that text and pressing F1.

Is your textbox bound to an Outlook date/time property?
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Josianne" wrote in message ...
What is the meaning of the "d" the 14 and the date
because I try dateadd("d",14,date) and dateadd("d",14,TODAY) and my fiel on
startup is "Néant".
--
Josianne


"Sue Mosher [MVP-Outlook]" wrote:

DateAdd("d", 14, Date)
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Josianne" wrote in message ...
Hi, I've got a problem with my form auto complete textbox. I've got a textbox
named "FinishDate" and On the load of my form I want to put the initial value
of this field with date of today + 14 days.
I try it with DateAdd function but I'm not sure it is working well or I
think I don't write the good parameters on it.
Thanks for your help!
--
Josianne


  #6  
Old March 17th 06, 07:26 PM posted to microsoft.public.outlook.program_forms
Josianne
external usenet poster
 
Posts: 28
Default Dateadd problem

Thanks a lot, I've found dateadd("d",14,NOW).
I try it before with TODAY or DATE and it don't work because I've got a
french version of outlook on this computer.
Thanks again problem resolve!
--
Josianne


"Josianne" wrote:

Hi, I've got a problem with my form auto complete textbox. I've got a textbox
named "FinishDate" and On the load of my form I want to put the initial value
of this field with date of today + 14 days.
I try it with DateAdd function but I'm not sure it is working well or I
think I don't write the good parameters on it.
Thanks for your help!
--
Josianne

 




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy 1 Text Field into another on Form, DateAdd and macros Michael Anderson Outlook and VBA 9 January 18th 06 11:37 PM
CustomPropertyChange, DateAdd and Click_event trouble Michael Anderson Outlook and VBA 1 January 18th 06 05:18 PM


All times are GMT +1. The time now is 09:22 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.