Solved

Need to link integer field from main report with character field in subreport

Posted on 2014-11-19
5
178 Views
Last Modified: 2014-11-19
I'm using Crystal 8.5 to modify a PO report.  The PO header contains a "VendorID" (integer).  That POHeader.VendorID links to the Vendor table VendorID (integer).  There is a field on the Vendor table called "VendorNum", and it's an integer field.  This character field needs to link to a subreport that shows memos for that vendor.  The field I need to link to in the subreport is a character field.  How can this be accomplished?

Thank you!
0
Comment
Question by:MTaft
  • 3
5 Comments
 
LVL 18

Accepted Solution

by:
vasto earned 500 total points
Comment Utility
Create a formula and assign the subreport parameter to the formula
0
 
LVL 1

Author Comment

by:MTaft
Comment Utility
Ok, I'll try that now, Vasto.
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
Agree.  Create a formula that converts the main report field to the appropriate type.

TO convert a number to a string be sure to include the formatting

CStr({YourNumber},0,'')

That converts to a numeric character string with 0 decimals and no thousand separators.

If you need leading 0's then use something like this

CStr({YourNumber},'00000000')

mlmcc
0
 
LVL 1

Author Comment

by:MTaft
Comment Utility
Thanks Vasto.  That worked.
0
 
LVL 1

Author Comment

by:MTaft
Comment Utility
Thanks mlmcc.  Great to know!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now