Submitting Information back to an Access Database - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Submitting Information back to an Access Database

Last post 07-29-2008 01:06 PM by kddove. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 11-27-2006 05:34 AM

    • Grey Owl
    • Not Ranked
    • Joined on 11-27-2006
    • South Africa
    • Posts 3

    Submitting Information back to an Access Database

    Hi guys,

    I am currently having a problem with a form I have developed in Infopath 2007. It is a leave application form and I have used a basic access database for this. Once a department has been chosen, the user can then choose their name provided they are in that department. From here, based on the user name, the form is automatically populated with their details like email, extension as well as the details of their manager. The form is also populated with the amount of leave that each employee has. The user then chooses the kind of leave that they want and this does the calculation and gives a new field with the ammended leave value. I am doing a dual submit then, one to a sharepoint library and the other back to the access database.

    It is this submitting back to the database that I am having a problem with. I am not to sure how to specify that the "newleavebalance" boxes are the ones that need to be submitted back to the database so that the database shows the new leave amounts.

    Any help would be greatly appreciated

    Thanks
    Darren
  • 11-27-2006 06:20 AM In reply to

    • Stavi
    • Top 100 Contributor
    • Joined on 12-13-2005
    • Posts 95

    Re: Submitting Information back to an Access Database

    Only the main connection can be submitted to a database.

    When you submit to a database every field in the main connection under dataFields is submitted, you cannot specify single fields
  • 11-27-2006 10:28 PM In reply to

    • Grey Owl
    • Not Ranked
    • Joined on 11-27-2006
    • South Africa
    • Posts 3

    Re: Submitting Information back to an Access Database

    I have got the main connection, but each time I submit the data back to the database, I get an error that tells me that I have not any information that has changed. When I submit to the db, am I submitting all the data in the form to the db?
  • 11-28-2006 01:29 AM In reply to

    • Stavi
    • Top 100 Contributor
    • Joined on 12-13-2005
    • Posts 95

    Re: Submitting Information back to an Access Database

    When you create a main connection for a database you should end up with a folder called myFields which should have 2 sub folders, one called queryFields, one called dataFields.

    You use the queryFields like you would in "Filter by Form" in access. Then query the main connection. This populates the dataFields.

    The can then modify any of the results. Submitting the form then saves the contents of dataFields only back to the database.

    You can also add extra fields to help your form but these will appear in myFields but outside the other 2 folders. Any contents of these fields will be lost if you do not save the form to a library or somewhere else.

    Yes if you do not change the contents of dataFields and try to submit you will get an error.

    I hope that made sense
  • 11-28-2006 12:18 PM In reply to

    • Grey Owl
    • Not Ranked
    • Joined on 11-27-2006
    • South Africa
    • Posts 3

    Re: Submitting Information back to an Access Database

    Ah, yes... Thanks for that :)
  • 09-18-2007 11:45 AM In reply to

    Re: Submitting Information back to an Access Database

    I have a similiar situation as below with an InfoPath 2003 form...when you said in an earlier post that... They can then modify any of the results. Submitting the form then saves the contents of dataFields only back to the database...does that work for 2003...I don't see where I can submit back to the Access database.

     

    Earlier Post....  When you create a main connection for a database you should end up with a folder called myFields which should have 2 sub folders, one called queryFields, one called dataFields.

        You use the queryFields like you would in "Filter by Form" in access. Then query the main connection. This populates the dataFields.

        They can then modify any of the results. Submitting the form then saves the contents of dataFields only back to the database.

     

     

    Filed under: ,
  • 07-29-2008 01:06 PM In reply to

    • kddove
    • Not Ranked
      Male
    • Joined on 07-01-2008
    • Imlay City, MI
    • Posts 17

    Re: Submitting Information back to an Access Database

    I have an Access DB.  I have a form with three fields for changing vendors per username.

     In the access database I have a unique username and a unique vendor.  What I want to do is let the users change their vendor instead of me having to do it... so I wanted to write something like:

    if username == username and

      vendor == vendor

    then

    new vendor == vendor

    So I have three slots on the form.  One for username, one for old vendor, one for new vendor and then a submit button.  I want to make sure it only updates the vendor where the username is specified using an access database.  Is this possible, if so how?

Page 1 of 1 (7 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.