Sequential Dates

S

Sofer Family

Hopefully someone has ideas or a coding example

I am preparing a form that has a requirement for sequential dates over 5-6
fields when the user inserts the first date

eg Insert a date in first field using a date picker, second field then
contains (date + 1 day), third fields contains (date + 2 days), etc

I know you cannot just add 1 to an inputted date, but hopefully someone has
some coding I could use...............................

Thank you....................... Robin
 
P

Patrick Halstead [InfoPath MVP]

Hi Robin,

Some coding will be required here because there is no way that I can figure
out to increment dates via the Rules wizard.

Take a look at the e-mail posting from Boreal earlier today. He has a
snipped of code in his OnLoad method that shows how to deal with Dates. What
you'll want to do is add an OnAfterChange event handler (double click on the
base date control and choose Data Validation, select OnAfterchange in
dropdown and click Edit) that sets the value of the other date nodes in your
form.

Good luck,
Patrick
 

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