Wrox Programmer Forums
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 21st, 2004, 01:11 PM
Authorized User
 
Join Date: Jul 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default Formula Field

Hi,

I have a prebuilt report here and have to make some changes in it. The datasource and fields - everything is present on the report. Now, I have to add one more field from another table(that is not present in the datasource of the report). I am trying to do it as follows: I am creating a blank formula field on the report. Then in the code I am accessing that field and setting its text property to a data table's column. I get an error saying that 'The Field name is not known'

How should I set the datasource for the formula field progamaticaly?

My code is as follows:

MyFormula.Text = "{MyTable.MyColumn}"

When I run the report, it says - "The field name (MyColumn) is not known".

When i try using the following code:

MyFormula.Text = MyTable.rows(0)(MyColumn)

..the report is displayed with the value of zero - th record for every row in the report.

How should I set the text value of the formula field in the code (I am working with VB.NET)


Thanks in advance
Gauri





Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Problem - Missing of Formula Field Result r_taduri Crystal Reports 0 July 9th, 2006 05:51 AM
formula sinha Crystal Reports 1 October 26th, 2005 12:53 PM
Help with a formula Corey Access 2 October 20th, 2005 10:48 AM
error in formula field (passing multiline String) Milan VB Components 0 September 29th, 2004 07:01 AM
Formula Ned Pro VB 6 2 September 10th, 2003 10:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.