i want to select an app name from the combo box in the parent form, and have it load all the information for the subform. how can i go about doing this? The point of this form is to edit already-added records
You could simply use your combo box AfterUpdate event to set the subform filter with the value selected in the combo box and then refresh your subform.
Private sub comboBox_AfterUpdate()
YourSubform.Filter = "WhateverField = " & comboBox
YourSubform.FilterOn = True
YourSubform.Requery
End if
EvilCabal means to use the link between the parent and child relationship. "WhateverField" should represent the primary and foreign key relations.
For example, if you've got a Master table and a Detail table. Master table PK is InvoiceID. Detail FK is Invoice ID. Assume the comboBox lists data from the Master table showing InvoiceID. You're sub(Child) displays all the detail of that Master InvoiceID. You're code would look like this...
Code:
Private sub comboBox_AfterUpdate()
YourSubform.Filter = "InvoiceID = " & comboBox
YourSubform.FilterOn = True
YourSubform.Requery
End if
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.