C
Craig Armitage
Hi guys,
Once again i humbly beg for your wisdom and assistance!
I am making a report that shows either a home address or a business address
depending on what the job requires...
i have 2 tables, Jobs and JobLocation. the job location table contains 2
entries, home and business.
ive created a textbox on the report with the following statement...
The idea is that if the job location is 1 (home) then the home address is
displayed. otherwise the business address is displayed.
For some reason, when i have [JobLocation=1] I only get home addresses
displayed and when i change it to [JobLocation=2] i get blank addresses
boxes except for the ones that should show a business address which are
displayed fine
=IIf([JobLocation]=1,[Customer_HomeNameNumber] & Chr$(13) & Chr$(10) &
[Customer_HomeStreet] & Chr$(13) & Chr$(10) & [Customer_HomeTown] & Chr$(13)
& Chr$(10) & [Customer_HomeCounty] & Chr$(13) & Chr$(10) &
[Customer_HomeCountry] & Chr$(13) & Chr$(10) &
[Customer_HomePostcode],[Customer_BusinessNameNumber] & Chr$(13) & Chr$(10)
& [Customer_BusinessStreet] & Chr$(13) & Chr$(10) & [Customer_BusinessTown]
& Chr$(13) & Chr$(10) & [Customer_BusinessCounty] & Chr$(13) & Chr$(10) &
[Customer_BusinessCountry] & Chr$(13) & Chr$(10) &
[Customer_BusinessPostcode])
Please help!!
Once again i humbly beg for your wisdom and assistance!
I am making a report that shows either a home address or a business address
depending on what the job requires...
i have 2 tables, Jobs and JobLocation. the job location table contains 2
entries, home and business.
ive created a textbox on the report with the following statement...
The idea is that if the job location is 1 (home) then the home address is
displayed. otherwise the business address is displayed.
For some reason, when i have [JobLocation=1] I only get home addresses
displayed and when i change it to [JobLocation=2] i get blank addresses
boxes except for the ones that should show a business address which are
displayed fine
=IIf([JobLocation]=1,[Customer_HomeNameNumber] & Chr$(13) & Chr$(10) &
[Customer_HomeStreet] & Chr$(13) & Chr$(10) & [Customer_HomeTown] & Chr$(13)
& Chr$(10) & [Customer_HomeCounty] & Chr$(13) & Chr$(10) &
[Customer_HomeCountry] & Chr$(13) & Chr$(10) &
[Customer_HomePostcode],[Customer_BusinessNameNumber] & Chr$(13) & Chr$(10)
& [Customer_BusinessStreet] & Chr$(13) & Chr$(10) & [Customer_BusinessTown]
& Chr$(13) & Chr$(10) & [Customer_BusinessCounty] & Chr$(13) & Chr$(10) &
[Customer_BusinessCountry] & Chr$(13) & Chr$(10) &
[Customer_BusinessPostcode])
Please help!!