D
doodle
windows xp
access 97
I have a report that lists the customer address in the header section.
CustName
AddressLine1
AddressLine2
AddressLine3
City,State,Zip
Country
The problem with these fields is that AddressLine2 and AddressLine3 are
not always populated. I want to move the other fields up, if that is
the case.
Here's my pseudo, i just can't seem to finish it. no matter how i try
to check the value or check to see if it is null, it returns an error.
Private Sub Report_Open(Cancel As Integer)
'Check to see if address 2 is null
'If it is not, set fields:
Me.tblCustomer_Address2.top = 2880
Me.Address3.top = 3120
Me.City.top = 3360
Me.Country.top = 3600
'If it is, set fields:
Me.City.top = 2880
Me.Country.top = 3120
Me.Address3.top = 3360
Me.tblCustomer_Address2.top = 3600
End Sub
-doodle
access 97
I have a report that lists the customer address in the header section.
CustName
AddressLine1
AddressLine2
AddressLine3
City,State,Zip
Country
The problem with these fields is that AddressLine2 and AddressLine3 are
not always populated. I want to move the other fields up, if that is
the case.
Here's my pseudo, i just can't seem to finish it. no matter how i try
to check the value or check to see if it is null, it returns an error.
Private Sub Report_Open(Cancel As Integer)
'Check to see if address 2 is null
'If it is not, set fields:
Me.tblCustomer_Address2.top = 2880
Me.Address3.top = 3120
Me.City.top = 3360
Me.Country.top = 3600
'If it is, set fields:
Me.City.top = 2880
Me.Country.top = 3120
Me.Address3.top = 3360
Me.tblCustomer_Address2.top = 3600
End Sub
-doodle