G
Guest
Good morning,
I am using a query to populate a report (letter). I am aving a little
trouble with formatting the address information of this report.
For instance, I used "=[Salut] & " " & [First] & " " & [Last]" as the
control source but my problem is that not all the records have a [Salut]. So
I would need to use it when it is available but ignore it if it is not their.
My current control source places an unneeded space when their is no [Salut]
My other problem was that some people use one line in their address while
others use 2. This once again causes unnecessary blank lines... I know this
is a common task and I'm hoping that someone can show me the way to get a
clean address in a report.
Moreover, while trying to get this to work I tried to use VBA... but it
didn't work? One cannot reference control source fileds from VBA. What
approach needs to be used then? Does one have to place the fileds on the
report invisibly and then through VBA check the control values to perform
operations... or is there an easier, more fficient way?
Thank you,
Daniel
I am using a query to populate a report (letter). I am aving a little
trouble with formatting the address information of this report.
For instance, I used "=[Salut] & " " & [First] & " " & [Last]" as the
control source but my problem is that not all the records have a [Salut]. So
I would need to use it when it is available but ignore it if it is not their.
My current control source places an unneeded space when their is no [Salut]
My other problem was that some people use one line in their address while
others use 2. This once again causes unnecessary blank lines... I know this
is a common task and I'm hoping that someone can show me the way to get a
clean address in a report.
Moreover, while trying to get this to work I tried to use VBA... but it
didn't work? One cannot reference control source fileds from VBA. What
approach needs to be used then? Does one have to place the fileds on the
report invisibly and then through VBA check the control values to perform
operations... or is there an easier, more fficient way?
Thank you,
Daniel