Thank you for your reply.
My form2 is a start form, there is a combo box named year on it. The form2
contains a sub form; I would like to change the sub form’s Record Source to
open each query displaying records on sub form corresponding to the year
selected from the combo box on the Start form. Here is the code for sub form
which I have now, it does not work. The message I got is the unknown form
Start. Please help me for the code. Thanks!
Private Sub Form_Load()
Dim year As String
year = Forms!Start!cboYear
year = Right(year, 2)
year = CStr(year)
Me.RecordSource = "q" & year & "Sum_US" ‘It is the query’s name
which I like to connect to
End Sub