Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unbound Field

Status
Not open for further replies.

Jefftopia

Programmer
Jul 30, 2002
104
US
I am attempting to get a Crystal Report to display the text from a combo box in my VB6 app without saving that text in a database. I have never used an unbound field in a CRpt but it seems like that is what I am looking for. Just don't know the formula to do it.

Anyone have any experience adding text directly from a VB form to a CRpt?

thx.
 
You can probably do this by creating a parameter and passing the combo box values to it, then display the parameter in the Crystal Report in a formula:

// This assumes a recent version of Crystal
join(?PassedParm},", ")

Otherwise you'll have to loop and concatenate the values from the parameter in a formula.

-k kai@informeddatadecisions.com
 
**RESOLVED**

I added a text box to the Crystal Report and populated it from VB using the following line of code:

Report.Text1.SetText cboSort.Text
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top