Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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. …
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 …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

861 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

23 Experts available now in Live!

Get 1:1 Help Now