Once I delete a record on a form (form has a subform) using a button available on a ribbon the following error window is displayed:
„You entered an expression that has an invalid reference to the property Form/Report“ – the error is display in a window with OK button only.
It is displayed after either OK or Cancel button is pressed, when delete confirmation dialog box appears.
I have already gone through a few posts but I haven’t found a clear answer.
I already assumed that it might have something to do with referencing forms using “Parent” property. I changed “Parent” to “Forms!....” but without any change.
The line which triggers errors is:
Expand|Select|Wrap|Line Numbers
- F.requiredField_label.Visible = False
Expand|Select|Wrap|Line Numbers
- Sub subHideLabelForReguiredField(F As Form)
- 'some code here
- If intNumberOfOrderedItems <> 0 Then
- F.requiredField_label.Visible = False
- Else
- F.requiredField_label.Visible = True
- End If
- 'error handling code here
- End Sub
Access 2007