ms access - Form - Create new record in *different* table based on current form data -
i'm building risk , issues tracker , have become stuck after initial progress. i'll explain setup now.
tables
- a table containing open projects
- a table containing open risks , issues
relationships
- a one-to-many relationship between project id (primary key in project table) risks , issues table
queries
- a query filter results projects table have been selected in combo box
forms
- one form containing combobox allows user select project. there text box, populated based on selected project. text box populated using dlookup on above query, , have chosen field populated that. works fine.
i able select project , see little information using above set up. next step me able add risk or issue.
what happen have create risk / issue button, pull across project id (primary key) selected project, , add new record in **risks , issues* table. need add in additional information risk, dates, owner etc.
also, having project primary key tied each risk, should able pull in additional info project require.
i can write more if required - i'm not sure information needed. also, form 'sits on' projects table have been wrong way of doing things, still don't know how bring in data 2 different tables.
i appreciate effort , patience put towards this.
from understanding of question sounds trying update risks , issues table single form bound projects table. if you're adding record risk issue table bound form needs bound table. best answer start fresh new form created wizard.
- make sure have fields want in form in risks , issues table.
- create form based on table using wizard.
- change project id control combobox right clicking , selecting change to, combobox.
- set row source take project id , project project table , make sure project id bound field , project displayed field(by adjusting column widths , bound column properties).
after doing should have form updates risk , issues table while selecting project project table. if not asking or wanted different way let me know i'll see if can help.
Comments
Post a Comment