<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Accessing SharePoint Lists from an Infopath Form</title><link>https://www.infopathdev.com:443/forums/thread/94270.aspx</link><pubDate>Wed, 13 Nov 2013 15:53:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94270</guid><dc:creator>Herriot2</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94270.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94270</wfw:commentRss><description>Hi Guys, I am learning Infopath and have manged to design a form and get it working with SharePoint using SharePoint designer. The form is a Holiday request form. Of the many fields I there is two particular fields that I could do with advice on. The fields are 1) Allocated (which is the total annual days holiday available)  2) Requested, this is populated by the user entering a start and end date.  Please note that I am currently NOT taking into account the weekends which are not counted as available days.

I think I need a list or 2 in SharePoint that contains the names of Staff and the annual holiday leave entitlement, the current requested days and then the balance if the requested days are authorised.

So if a same staff member requests more holidays the days allocated will be reduced by the amount previously requested. So, for example is a staff member starts out with an allocation of 40 days and then requests a 10 day break the list will be reduced by 10 leaving him/her with 30. So in a couple of months time if same staff member requests a further 10 days their allocation will be 30 days.

I have this showing easily enough in the form itself. but I need the form to check the list for continuing use.

Regards.

Peter</description></item></channel></rss>