Understood, they are different records, so in my example below Beach
nut
has
4 products and Stages has 3. The Manufacturer is one header and their
products are in the detail section. One manufacturer has many prodcuts
some
have few. so you see one beachnut and 4 products below them I want to
keep
the detia (product records) together and not have line feeds after
each. I
would send the databas but it is 40M is there some other way to show
you?
:
I am not sure if you are confused or if I am confused (maybe both).
Are
Baby Foods in jars without salicylate
Rice Cereal with Bananas
Toddler Foods in jars without salicylate
contained in different records or values in a single record?
Do you understand that Access reports are "band" based. Each section
is a
horizontal band that generally stretchs from the left side of the page
to
the right side of the page.
--
Duane Hookom
MS Access MVP
--
Per my example below after each product is displayed there is a line
wrap
to
the next product. Does Reports Line wrap after each section IE after
each
header then detail then foooter does a line wrap occur?
BEECH-NUT this is the manufacturer header after this is displayed it
line
wraps to the next line wihic is the product detail section, after
each
product it line wraps. So again my question would be is there a way
to
supress line wraps after each section prints.
Baby Foods in jars without salicylate
:
Access doesn't append CRLFs in expressions. This might be the
result
of
line-wrap. What makes you think there is a CRLF in the text?
--
Duane Hookom
MS Access MVP
I am using Detaillayout = Replace(productdata, Chr(13) & Chr(10),
",")
in a
function I created that combines 8 fields together I use len
theere
also,
I
am using acccess 2003. In my function I use WhereCrLf =
Instr([ProductData],
Chr(13) & Chr(10)) and it returns 0. I suspect that access
appends
CRLF
after
populating the detail section.
:
Where are you using:
Detaillayout = Replace(productdata, Chr(13) & Chr(10), ",")
Assigning a value to a variable usually occurs in code.
What field are you using in LEN()?
What version of Access are you using?
What happens if you add a column to your query:
WhereCrLf: Instr([ProductData], Chr(13) & Chr(10))
or
WhereCr: Instr([ProductData], Chr(13))
or
WhereLf: Instr([ProductData], Chr(10))
--
Duane Hookom
MS Access MVP
--
Detaillayout = Replace(productdata, Chr(13) & Chr(10), ",")
Does not work, when you LEN(field) it shows only the data not
the
Chr(13)
&
Chr(10)
:
Have you tried something like:
=Replace([YourField],Chr(13) & Chr(10), " ")
--
Duane Hookom
MS Access MVP
message
I want to know how to eliminate the carrage return and line
feed
from
the
detail section, currently the data looks like this
BEECH-NUT
Baby Foods in jars without salicylate
Rice Cereal with Bananas
Toddler Foods in jars without salicylate
STAGES
Barley Cereal
Mixed Cereal
Pear Juice
When I would like it to look like this
BEECH-NUT Baby Foods in jars without salicylate,
Rice Cereal with Bananas, Toddler Foods in jars without
salicylate
STAGES Barley Cereal, Mixed Cereal, Pear Juice