Dateadd problem

J

Josianne

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!
 
S

Sue Mosher [MVP-Outlook]

DateAdd("d", 14, Date)
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
J

Josianne

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".
 
S

Sue Mosher [MVP-Outlook]

"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

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers


Josianne said:
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".
 
J

Josianne

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top