Dave Eyley
Registered User.
- Local time
- Today, 05:35
- Joined
- Sep 5, 2002
- Messages
- 254
Hi All,
I have a report with an address block consisting of 5 controls (street,area,town,county,postcode). It has to be positioned correctly for a windowed envelope which in itself is relatively easy. My problem is I have a piece of code to shift the controls town, county and postcode up if area is null to avoid a gap in the address block.
I put this code in the OnCurrent event on the report
If IsNull(Me!Area) Then
Me!Area.visible=False
Me!Town.Top=1.508.
Me!County.Top=1.984
Me!Postcode.Top=2.46
Else
Me!Area.visible=True
Me!Town.Top=1.984
Me!County.Top=2.46
Me!Postcode.Top=2.937
End If
The code above moves the code but not where it's supposed to go...
Any help or guidance would be appreciated...
Access 2010
I have a report with an address block consisting of 5 controls (street,area,town,county,postcode). It has to be positioned correctly for a windowed envelope which in itself is relatively easy. My problem is I have a piece of code to shift the controls town, county and postcode up if area is null to avoid a gap in the address block.
I put this code in the OnCurrent event on the report
If IsNull(Me!Area) Then
Me!Area.visible=False
Me!Town.Top=1.508.
Me!County.Top=1.984
Me!Postcode.Top=2.46
Else
Me!Area.visible=True
Me!Town.Top=1.984
Me!County.Top=2.46
Me!Postcode.Top=2.937
End If
The code above moves the code but not where it's supposed to go...
Any help or guidance would be appreciated...
Access 2010