Search code examples
databasems-accessms-access-2007

Is there a way I can link a selected record in a subform to a textbox in the form?


I am trying to create a form where I have a section with text boxes and a subform displaying all the data in the table, I've created the text boxes and subform and managed to display the data. However I am trying to make it so whenever I select the a record in the subform, the textboxes get changed to the currently selected record.

I have managed to make it work using a list box, however a list box cannot be edited.

I have included screenshots to better show what I am trying to do.

what I am trying to do with the subform

what I have managed to with the listbox


Solution

  • It looks like you are trying to roll your own "split form" here. See "Create a split form" at https://support.microsoft.com/en-us/office/create-a-split-form-e8eb0efb-2fa6-4315-9d4b-86e79a1fbe1e