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: