S
Sunflower
I need to have all [APPROVERNAME] is rows in my subform
to be strung together with a ";" between them
Here is what I have done (not working) so far...
---------------------------------
MAIN FORM - frmWOEDIT
TEXTBOX - txtAPPROVERS_STRING
CONTROL SOURCE - =subfrmAPPROVALS.Form!txtAPPROVERSTRING
--------------------------------
SUBFORM - subfrmAPPROVALS
TEXTBOX (IN FOOTER) - txtAPPROVERSTRING
CODE -
Private Sub txtAPPROVERSTRING_Enter()
Dim RS As Recordset, strResult As String
Set RS = CurrentDb.OpenRecordset([tblAPPROVALS])
While Not RS.EOF
strResult = strResult & RS!APPROVERNAME & "; "
RS.MoveNext
Wend
End Sub
to be strung together with a ";" between them
Here is what I have done (not working) so far...
---------------------------------
MAIN FORM - frmWOEDIT
TEXTBOX - txtAPPROVERS_STRING
CONTROL SOURCE - =subfrmAPPROVALS.Form!txtAPPROVERSTRING
--------------------------------
SUBFORM - subfrmAPPROVALS
TEXTBOX (IN FOOTER) - txtAPPROVERSTRING
CODE -
Private Sub txtAPPROVERSTRING_Enter()
Dim RS As Recordset, strResult As String
Set RS = CurrentDb.OpenRecordset([tblAPPROVALS])
While Not RS.EOF
strResult = strResult & RS!APPROVERNAME & "; "
RS.MoveNext
Wend
End Sub