M
Michael S. Montoya
I have a main form that has multiple instances of the same subform (each is
a different day of the week)
I named each subform Day1Subform, Day2Subform...Day7Subform. The main form
is frmWeeklyGlance
I was trying to set the recordsources with a do loop, but can't figure out
the syntax
I tried...
Me("frmWeeklyGlance.Day" & intLoop &
"Subform.Form").RecordSource=strSQL
-and-
Forms("frmWeeklyGlance.Day" & intLoop & "Subform").RecordSource =
strSQL
the following code does work, but I was hoping to make the code more
clean...
' Select Case intLoop
' Case 0
' Forms!frmWeeklyGlance.Day1Subform.Form.RecordSource =
strSQL
' Case 1
' Forms!frmWeeklyGlance.Day2Subform.Form.RecordSource =
strSQL
' End Select
help!!!
a different day of the week)
I named each subform Day1Subform, Day2Subform...Day7Subform. The main form
is frmWeeklyGlance
I was trying to set the recordsources with a do loop, but can't figure out
the syntax
I tried...
Me("frmWeeklyGlance.Day" & intLoop &
"Subform.Form").RecordSource=strSQL
-and-
Forms("frmWeeklyGlance.Day" & intLoop & "Subform").RecordSource =
strSQL
the following code does work, but I was hoping to make the code more
clean...
' Select Case intLoop
' Case 0
' Forms!frmWeeklyGlance.Day1Subform.Form.RecordSource =
strSQL
' Case 1
' Forms!frmWeeklyGlance.Day2Subform.Form.RecordSource =
strSQL
' End Select
help!!!