Calculate the difference between two date picker

S

Stefan W.

Hi,

thanks for the info, but how i create an onchangeafter event at InfoPath.
Sorry i´m usually don´t develop code.

Thanks
Stefan
 
S

Shiva (GGK Tech)

Hello,

Do you have solution for InfoPath project? Then you have to double click on
the date field then it will automatically goes to code and it will create
onAfter change event for that field.

Otherwise you can select your field,
Tools -> Programming -> Changed Event.

Then it will creates the on After changed event.
 
S

Stefan W.

Hi,

thanks. it don´t work. Could you send me a test file with this function?
That would be great.

Thanks
Stefan
 
M

Madhuri

Hi
Here the steps to on how to add events in infopath

1. Select Visual Basic under Project types section
2. Expand Visual Basic
3. Select Office
4. Select InfoPath Form Template under Templates section
5. Enter the name and Location
6. Click Ok
7. Browse to the template using 'On My Computer' options present under
"Create project from existing form template"
8. Click Ok
9. Solution file get created with the existing template
10. Go to design mode and
11. Right click on the Control that you want to write code on
12. Select Programming
13. You will find different events

Another option is
1. Go to 'Insert' menu
2. Select the required event


Thanks,
 
J

jano

Hi Stefan and all!

This:
http://www.bizsupportonline.net/infopath2007/calculate-date-difference-infopath-rules-formulas.htm

didn't work for me neither:((

note:
when I entered the functions: number, substring and floor; and clicked on
'verify formula', the infopath displayed Error indicating that there
shouldn't be any spaces between numbers 'startDate, 9, 2' etc.
So, I repaired the formulas deleting all spaces between numbers, but it
still didn't work after that.

I'm starting to believe that there is no other way to do this than code,
which I'm trying to avoid. So any ideas would be greatly appreciated.

thx,
jano
 

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