strive4peace
AWF VIP
- Local time
- Today, 01:08
- Joined
- Apr 3, 2020
- Messages
- 1,024
However! the problem is that the form can't open with criteria that is on the form itself! You must use the LinkMasterFields (m_anstudiu) and LinkChildFields.
Here is the criteria you currently have using m_anstudiu:
Val(Mid([materii.codm],2,1))=Forms!note.Form.m_anstudiu.value (which should be Forms!note!m_anstudiu if you could do it this way, but you can't)
Val(Mid([materii.codm],2,1)) needs to be a calculated field in the recordsource for the subform, and then ON the subform in a control (Visible can be No) -- and whatever the name of that calculated field is should be the control name too. Then that would be LinkChildFields for the subform control
Here is the criteria you currently have using m_anstudiu:
Val(Mid([materii.codm],2,1))=Forms!note.Form.m_anstudiu.value (which should be Forms!note!m_anstudiu if you could do it this way, but you can't)
Val(Mid([materii.codm],2,1)) needs to be a calculated field in the recordsource for the subform, and then ON the subform in a control (Visible can be No) -- and whatever the name of that calculated field is should be the control name too. Then that would be LinkChildFields for the subform control