Hi all. I have two addresses. When they are the same, I want the second one not to show. So, in the 'On Format' Event of the report, I wrote the following code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If [tblParent_1.Address] = [tblParent.Address] Then
[tblParent_1.Address] = ""
Else: [tblParent_1.Address] = [tblParent_1.Address]
End If
End Sub
The error I get is: Can't assign a value to this object. I have tried to change "" to null, same problem. I then tried to define a string variable, and still ran into the same issue. Any help is very welcomed.
Thanks
David
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If [tblParent_1.Address] = [tblParent.Address] Then
[tblParent_1.Address] = ""
Else: [tblParent_1.Address] = [tblParent_1.Address]
End If
End Sub
The error I get is: Can't assign a value to this object. I have tried to change "" to null, same problem. I then tried to define a string variable, and still ran into the same issue. Any help is very welcomed.
Thanks
David