T
Tim Long
Hello, I am attempting to reduce space in a report by entering formulas in
the control source of two unbound text boxes (along with CanShrink set to Yes
for the text box and detail section). I am experiencing problems with both
and can't figure out why..
The first text box is intended to return the customer's address. I have
noticed that where there is a null, I get something that looks like an empty
tickbox appearing after the text of the last field containing data. I have
'Allow zero length' set to No for all the address fields. The formula is as
follows:
=([address1] & (Chr(13) & Chr(10)+[address2]) & (Chr(13) &
Chr(10)+[address3]) & (Chr(13) & Chr(10)+[address4]) & (Chr(13) &
Chr(10)+[postcode]))
In the above, the record I'm testing the report on has no data in address3,
and I get the empty-tickbox style symbol at the end of the text of address2.
The second text box should list a dozen date fields, but, as above, ignore
the fields with no data. I have added just the first two fields and am get
nothing but '#Error' when I run the report. The formula I have so far is:
=("Date received: " & [d_received] & (Chr(13) & Chr(10) & "Date of initial
contact: "+[d_initial_contact]))
By way of experimentation I inserted a text field instead of the
[d_initial_contact] date field and found that it returned the data on two
lines, as expected. Also, the formula returns the [d_received] date no
problem. So the problem appears to be with the subsequent date fields. Does
the '+' not work with dates? Is there a workaround?
Any help would be much appreciated.
Many thanks
Tim Long
the control source of two unbound text boxes (along with CanShrink set to Yes
for the text box and detail section). I am experiencing problems with both
and can't figure out why..
The first text box is intended to return the customer's address. I have
noticed that where there is a null, I get something that looks like an empty
tickbox appearing after the text of the last field containing data. I have
'Allow zero length' set to No for all the address fields. The formula is as
follows:
=([address1] & (Chr(13) & Chr(10)+[address2]) & (Chr(13) &
Chr(10)+[address3]) & (Chr(13) & Chr(10)+[address4]) & (Chr(13) &
Chr(10)+[postcode]))
In the above, the record I'm testing the report on has no data in address3,
and I get the empty-tickbox style symbol at the end of the text of address2.
The second text box should list a dozen date fields, but, as above, ignore
the fields with no data. I have added just the first two fields and am get
nothing but '#Error' when I run the report. The formula I have so far is:
=("Date received: " & [d_received] & (Chr(13) & Chr(10) & "Date of initial
contact: "+[d_initial_contact]))
By way of experimentation I inserted a text field instead of the
[d_initial_contact] date field and found that it returned the data on two
lines, as expected. Also, the formula returns the [d_received] date no
problem. So the problem appears to be with the subsequent date fields. Does
the '+' not work with dates? Is there a workaround?
Any help would be much appreciated.
Many thanks
Tim Long