Solved

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

Posted on 2014-11-19
5
187 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 18

Accepted Solution

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

Author Comment

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

Expert Comment

by:mlmcc
ID: 40453492
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
ID: 40453724
Thanks Vasto.  That worked.
0
 
LVL 1

Author Comment

by:MTaft
ID: 40453726
Thanks mlmcc.  Great to know!
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Suggested Courses

734 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