thescottsman
Registered User.
- Local time
- Today, 17:57
- Joined
- Sep 18, 2014
- Messages
- 42
Hi All
I have a form where I want to return the grandparents form name. The code is as below:
If Me.Parent.Parent.Name = "frm_Operations" Then
'Operations form
Forms!frm_Operations!txtoperationscontract = Me.Contract
ElseIf Me.Parent.Parent.Name = "frm_Engineering" Then
'Form is engineering
Forms!frm_Engineering!txtengineeringsearch = Me.Contract
End If
2452: The expression you entered has an invalid reference to the panel property
It works form the operations form but not form the engineering
Can anyone help?
I have a form where I want to return the grandparents form name. The code is as below:
If Me.Parent.Parent.Name = "frm_Operations" Then
'Operations form
Forms!frm_Operations!txtoperationscontract = Me.Contract
ElseIf Me.Parent.Parent.Name = "frm_Engineering" Then
'Form is engineering
Forms!frm_Engineering!txtengineeringsearch = Me.Contract
End If
2452: The expression you entered has an invalid reference to the panel property
It works form the operations form but not form the engineering
Can anyone help?