G
Guest
Hi!
I would like to set new recordsource to my subform on changing a combobox in
the main form. My code is as below:
If Me.txtLett = "Interview" Or Me.txtLett = "Final Admn" Then
Me.Call_Letters_Sub_2.Form.RecordSource = QRYCallLettUPDTIntAdmn
ElseIf Me.txtLett = "Adv. Admn" Then
Me.Call_Letters_Sub_2.Form.RecordSource = QRYCallLettUPDTAdvAdmn
End If
I am displaying the subform in datasheet view.
The above code is showing #Name against all controls of the subform. No
problem when I open the subform separately.
Please help how to solve the problem.
Thanks
Krish
I would like to set new recordsource to my subform on changing a combobox in
the main form. My code is as below:
If Me.txtLett = "Interview" Or Me.txtLett = "Final Admn" Then
Me.Call_Letters_Sub_2.Form.RecordSource = QRYCallLettUPDTIntAdmn
ElseIf Me.txtLett = "Adv. Admn" Then
Me.Call_Letters_Sub_2.Form.RecordSource = QRYCallLettUPDTAdvAdmn
End If
I am displaying the subform in datasheet view.
The above code is showing #Name against all controls of the subform. No
problem when I open the subform separately.
Please help how to solve the problem.
Thanks
Krish