Step by step infopath (01)-submit the form to the Access Database

Source: Internet
Author: User

I,Development Environment

LMicrosoft Office Access2010

LMicrosoft Office infopath designer 2010

II,Objectives of this section

ImplementationInfopathDesign the form and submit the dataAccessDatabase. For ease of demonstration, the examples provided are relatively simple. Start ourInfopathA journey.

III,Follow me step by step

1. first create access database demo. accdb . Design table userfeedback .


2.NextAccessCreate a data sourceInfopathForm. To establish a database connection between a database and a form, you must create a blank form.

L Open Infopath , Select New -> Advanced form template -> Database. Click "design form" ,

LIn the database connection wizard, click Select data source, and then click New Source.

LSelect a data source. Because we useAccessDatabase, so selectODBC DSNData Source

Then, locate the database you just created and add it.

LSelect the database and table to connect.

LAfter adding

LThe form is shown as follows. Save it.

 

For primary data connection,InfopathIn fact, two very similar data structures are created: a set of query fields and a set of data fields. You can enter the value in the form using the query field and then query the database. In addition, you can use data fields to enter new records in the database and modify existing records in the database. Each field group matches the table and field in the database.

3.DesignInfopathForm

In the field area, right-click the database field to be added and select the desired space style to be added to the form. In this case, we select the text box that contains the repeated section. The repeat section allows us to enter multiple records at the same time.

4.Under the form, add the submit button. The property settings are as follows:

LNext we will set the submit option: File-> Set the submission option as follows.

5.Now, the form design is complete. We can release and test it. Click the file.->Release-> Network location. Test after release.

View results:

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.