Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / March 2006

Tip: Looking for answers? Try searching our database.

Increment date

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
An9e24 - 24 Mar 2006 21:11 GMT
I have datepicker with the function NOW() on my form to mark the date
automatically for the usage of the form. Is there a way I can insert another
text box which will insert an ending date that will increment by 10 days.

(i.e. if I chose today's date 3-24-06, how can I get my second text box to
show automatically 4-2-06? )

Thanks,
S.Y.M. Wong-A-Ton - 26 Mar 2006 23:44 GMT
Unfortunately, there is no easy way to do this in InfoPath than with code.

These links might help:
http://msdn.microsoft.com/library/en-us/dnvid/html/msdn_vidateadd.asp?frame=true
http://enterprise-solutions.swits.net/infopath/solutions.htm#datetime

The quickest solution for your scenario is to create a Date() object in
JScript, use setDate(10) to jump 10 days ahead, and then set the second text
box's value to the newly calculated date.
---
S.Y.M. Wong-A-Ton

> I have datepicker with the function NOW() on my form to mark the date
> automatically for the usage of the form. Is there a way I can insert another
[quoted text clipped - 4 lines]
>
> Thanks,
willib - 27 Mar 2006 16:04 GMT
you might find this sample helpfull:
http://www.breitwieser.net/DasBlog/content/binary/DatumRegel_script.xsn

> I have datepicker with the function NOW() on my form to mark the date
> automatically for the usage of the form. Is there a way I can insert another
[quoted text clipped - 4 lines]
>
> Thanks,
An9e24 - 29 Mar 2006 00:16 GMT
Thanks for replying, unfortunately the same is protected thru a login screen.

> you might find this sample helpfull:
> http://www.breitwieser.net/DasBlog/content/binary/DatumRegel_script.xsn
[quoted text clipped - 8 lines]
> >
> > Thanks,
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.