E
Eric
I'm trying to change the recordsource property for a form
before I open it. I seem to only be able to do it with
the following code:
Me.RecordSource = "43Parts"
These ways suggested by MS Help do not seem to work:
Method 1:
DoCmd.OpenForm [Estimating Parts Subform]
Forms![Estimating Parts Subform].RecordSource = "43Parts"
DoCmd.Close
<code executes but doesn't change the RecordSource>
Method 2:
Dim frm as New [Estimating Parts Subform]
frm.RecordSource = "43Parts"
<first line doesn't compile>
before I open it. I seem to only be able to do it with
the following code:
Me.RecordSource = "43Parts"
These ways suggested by MS Help do not seem to work:
Method 1:
DoCmd.OpenForm [Estimating Parts Subform]
Forms![Estimating Parts Subform].RecordSource = "43Parts"
DoCmd.Close
<code executes but doesn't change the RecordSource>
Method 2:
Dim frm as New [Estimating Parts Subform]
frm.RecordSource = "43Parts"
<first line doesn't compile>