P
Paul Mars
MainForm has many different Buttons to open the same "MainData" Form with
different RecordSources using:
Private Sub RecordsAddressChildren_Click()
DoCmd.OpenForm "MainData"
Forms!MainData.RecordSource = "RecordsAddressChildren"
End Sub
Private Sub RecordsAddress_Click()
DoCmd.OpenForm "MainData"
Forms!MainData.RecordSource = "RecordsAddress"
End Sub
Then there is a button on "MainData" Form that opens a Report. The
RecordSource for the Report needs to be the same as the one just chosen for
"MainData" Form.
How can I do this?
Thanks,
Paul
different RecordSources using:
Private Sub RecordsAddressChildren_Click()
DoCmd.OpenForm "MainData"
Forms!MainData.RecordSource = "RecordsAddressChildren"
End Sub
Private Sub RecordsAddress_Click()
DoCmd.OpenForm "MainData"
Forms!MainData.RecordSource = "RecordsAddress"
End Sub
Then there is a button on "MainData" Form that opens a Report. The
RecordSource for the Report needs to be the same as the one just chosen for
"MainData" Form.
How can I do this?
Thanks,
Paul