Hi Everyone,
I am using a form and subform for user input. I have set the recordsource for the subform using VBA. This recordsource is based on user input entered via a combobox.
The following code works very nicely to set the recordsource:
Forms!frmGroupMain.frmGroupSub.Form.RecordSource = "SELECT * FROM qryGroup WHERE Left([TxGroup],3) = " & strGroup & " AND ActiveInGroup = True"
The code is selecting all records where the left 3 characters match the left 3 characters in the combobox (which is the group number, i.e. T02, W05, etc.) and those records that are identified as “ActiveInGroup.”
Now I want to create a recordset so I can loop through it and print letters for records identified as “NoShow.”
I am hoping someone can help me out with this.
Thank you, Don
I am using a form and subform for user input. I have set the recordsource for the subform using VBA. This recordsource is based on user input entered via a combobox.
The following code works very nicely to set the recordsource:
Forms!frmGroupMain.frmGroupSub.Form.RecordSource = "SELECT * FROM qryGroup WHERE Left([TxGroup],3) = " & strGroup & " AND ActiveInGroup = True"
The code is selecting all records where the left 3 characters match the left 3 characters in the combobox (which is the group number, i.e. T02, W05, etc.) and those records that are identified as “ActiveInGroup.”
Now I want to create a recordset so I can loop through it and print letters for records identified as “NoShow.”
I am hoping someone can help me out with this.
Thank you, Don