Hey all,
I'm trying to use a combo box in a form that can be used to select values from a lookup table, which select or add a new record from another table based off that value. I thought it would be pretty straight forward but it's been a while since I've created a database and am lost on this one.
The details:
The table, tblStudyID, Study_ID field serves as a lookup table/values for tblPtMain, Study_ID field. The tblStudyID has just the one field, Study_ID, which is populated with records 00001 - 00999. I'd like to have a combo box where I can select any of the populated values from tblStudyID, e.g. 00002, and return the associated record from tblPtMain. If Study_ID 00002 doesn't exist in tblPtMain then a record is created if values are entered in any of the other fields on the form. Please see attached screenshots. FYI, Study_ID is my combo box in the screenshots. Sorry if that didn't make sense.
Hope that makes sense and thanks for all the help![]()