papadilbert
Programmer
I've read other posts but I'm having a problem with the solution pasted below:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "bForm"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Set Forms(stDocName).Recordset = Me.Recordset
The above code opens the form. The Load subroutine of bForm begins to execute but the Recordset has not been set yet.
The above code seems to set the aForm.Recordset after the bForm has been loaded.
The above code specifies stLinkCriteria but it's not set. What's that about?
How do I set the bForm.Recordset before bForm Load is executed?
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "bForm"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Set Forms(stDocName).Recordset = Me.Recordset
The above code opens the form. The Load subroutine of bForm begins to execute but the Recordset has not been set yet.
The above code seems to set the aForm.Recordset after the bForm has been loaded.
The above code specifies stLinkCriteria but it's not set. What's that about?
How do I set the bForm.Recordset before bForm Load is executed?