J
Jeff
I have a subform that I want to populate with data from a query recordset.
In the form_open event I have
Set dbs = CurrentDb
Set qdf = dbs.QueryDefs("qry_Union_Single_Weekly_Monthly")
For Each prm In qdf.Parameters
prm.Value = Eval(prm.name)
Next prm
Set rst = qdf.OpenRecordset()
'Checks to see if there is at least one record in the recordset
If rst.EOF = False And rst.BOF = False Then
this is where I need help.
I have set the link child fields of the subform to "MeetingDate" which is in
the recordset and set the link master fields to a text box on the form.
What is the rest of the process to populate this subform?
I know I could set the recordsource of the subform to the query and
eliminate this "openrecordset" method but for various reasons this is the
way I have elected to go.
In the form_open event I have
Set dbs = CurrentDb
Set qdf = dbs.QueryDefs("qry_Union_Single_Weekly_Monthly")
For Each prm In qdf.Parameters
prm.Value = Eval(prm.name)
Next prm
Set rst = qdf.OpenRecordset()
'Checks to see if there is at least one record in the recordset
If rst.EOF = False And rst.BOF = False Then
this is where I need help.
I have set the link child fields of the subform to "MeetingDate" which is in
the recordset and set the link master fields to a text box on the form.
What is the rest of the process to populate this subform?
I know I could set the recordsource of the subform to the query and
eliminate this "openrecordset" method but for various reasons this is the
way I have elected to go.