Hi,
I need to refer to a subform to check if the contents of it have been changed. Even though I use the exact same syntax to check the main form(this works fine) it doesn't seem to work for the subrform.
For example say, the main forms name was:
Polling 20kV-Add a Record
and the name of the subform in it's properties box was:
Pole Attributes
I have used the following code:
If Forms![Polling 20kV-Add a Record]![Pole Attributes].Form.Dirty Then
Call Conf
Else
DoCmd.Close
End If
Conf is just a function that displays a message box.
As I said the exact same syntax seems to work fine for the main form. Can someone please tell me what I am doing wrong and how to call the subform properly?
Thanks,
Liam
I need to refer to a subform to check if the contents of it have been changed. Even though I use the exact same syntax to check the main form(this works fine) it doesn't seem to work for the subrform.
For example say, the main forms name was:
Polling 20kV-Add a Record
and the name of the subform in it's properties box was:
Pole Attributes
I have used the following code:
If Forms![Polling 20kV-Add a Record]![Pole Attributes].Form.Dirty Then
Call Conf
Else
DoCmd.Close
End If
Conf is just a function that displays a message box.
As I said the exact same syntax seems to work fine for the main form. Can someone please tell me what I am doing wrong and how to call the subform properly?
Thanks,
Liam