Is it possible to capture the record source property of a closed form?
I would like to capture the recordsource property in a text box for any form in the DB by using the afterupdate property of a combobox that lists all the DB's forms.
I would like to capture the recordsource property in a text box for any form in the DB by using the afterupdate property of a combobox that lists all the DB's forms.
Code:
Private Sub cbo_FormName_AfterUpdate()
Dim FormName As String
Dim FormRS As String
FormName = Me.cbo_FormName 'selects a form from a combobox
FormRS = FormName.RecordSource
Me.txt_FormRecordSource = FormRS
End Sub