Crystal Reports

Hi,

I'm building a report to print labels.  I've connected it to an Access Database table.  Each label however is not it's own record.  The table is built in a way where all the data for one label is not in one record, but 15 records.  I'm gong to describe this as the record being stored vertically, instead of the traditional way.

So how can I pull in 15 records as being one record?  Each record that I'm trying to pull in would be the # in the PosID field.  I've attached a screenshot.  I've highlighted the records that should actually be one record or one label if you will.

Document1.pdf

Thanks,
Joel
Genius123Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
How large is the label?
What printer?
Is it a label printer or are the labels on a sheet?

Are you trying to print 1 line on the label per record or are you just doing some summary information?

mlmcc
0
Genius123Author Commented:
Label is 5 x 3.5.  It's a label printer.  So as an example, if you look at my PDF, look at the 15 records where PosID = 688663, all the values in the FieldValue field would be on one label.  Then for the next label, it would look at values where PosID = 688664, and so on, and so on.
0
mlmccCommented:
Start with a new report using the LABEL EXPERT
CHoose the correct label and printer.  It may be best to set the printer as default before you start the report.

Group on the PosID.
Put any common information into the group header
Put the fields on the label.  You probably will have to play with them a little to get 15 lines on a page.  
Choose a small font and small size
If need to put some information into the group footer
Right click the GROUP FOOTER on the left margin
Click SECTION EXPERT
Click the PAGING tab
CLick the FORMULA button to the  right of NEW PAGE AFTER
Use this formula
  Not OnLastRecord

Preview the report.  If it looks good  try printing 1 or 2 labels

mlmcc
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

vastoCommented:
I guess you have a field to group the 15 records. If this is correct you can use TRANSFORM to  pivot the data from columns to rows. You can find more information  and a sample about this operator here: http://ss64.com/access/transform.html

You will need also to create a command and use it in your report. Access query ( view) will probably work too. In this case you will be able to use Database expert.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Genius123Author Commented:
Thanks for the comment mlmcc.  But I went with the SQL query as vasto suggested.  It was easier for me to understand.  Should I give you both points equally?
0
mlmccCommented:
That is up to you.  I was providing an alternative.  If it works for you great.  

Did you try it at all?
If not you can give the points to vasto.

If you choose to split, you can control how many point each comment gets so his comment could get more than half.

mlmcc
0
Genius123Author Commented:
Thank you.  This query was the solution.

TRANSFORM FIRST(FieldValue)
SELECT PosID
FROM OPT_CHRHOST
GROUP BY PosID
PIVOT FieldName;
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.