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
Solved

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

Posted on 2014-11-19
5
185 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
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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. …
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

840 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