My infopath form is connected to a SQL Server Database in which I created four tables:
1. tbl_main
pk: main_id
fk: address_id (from table2)
fk: employee_id (from table3)
fk: service_id (from table4)
request_date
2. tbl_address:
pk: address_id (identity(1,1)
street
state
country
3. tbl_employee
pk: employee_id (identity(1,1)
lastname
firstname
4. tbl_service
pk: service_id (identity(1,1)
service_type
The form contains some text fields and dropdown boxed which are based on those 4 tables.
My question is:
Should I use "new from data connection" option when I create the form? If so, which table should I set as a main data source?
How I can I insert new address_id, employee_id and service_id into tbl_main table once users enter some new record into those
three tables?