Hello,
I am trying to update a form that currently pulls a "Comments" value from an existing table (items) and displays it in a text box the user can edit. I am trying to add a set of buttons that will allow the user to toggle between the existing "comments" value, and a new "job_notes" value that exists in a new table (job_data). The "job_notes" value is determined by a "job_type" value that is the primary key of (job_data) and is a value in the (items) table. When the user hits a button for either one of the notes options I would like the text box to be populated with the value, and also allow the user to edit the "Comments" and "job_notes" values.
I have been trying to do this by setting the ControlSource box through vba code to mixed results and have hit a wall. I keep running into problems trying to get the "job_notes" to populate the field and then let the user edit the contents. I thought I had a solution using dlookup to query the (job_data) table based on the "job_type" value that exists in the form, but using this to set the ControlSource does not allow the user to edit the field.
So my question is what solution (vba, better database design, other) would allow me to populate one text box with comment values from two tables and allow the user to edit those fields?