?
Solved

using text object value from crystal report into formula editor

Posted on 2004-09-08
8
Medium Priority
?
2,953 Views
Last Modified: 2012-06-22
i have a text box object in my crystal report form,(named txtName) and i've assign a value to it...let say "My Name". I want to create a formulae that used the text box value....like, "I want to print this" & txtName.value, but this method won't work..:D please somebody help me..;D
0
Comment
Question by:craduza
[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
  • 3
  • 2
8 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 12013048
I don't think you can get at the text box values from Crystal.  

Instead of a text box create a formula

Name - MyTextBox
Formula
'My Name'

You should be able to use the formula in your other formula.

mlmcc
0
 
LVL 1

Author Comment

by:craduza
ID: 12013130
the problem is...the txtName value will always changed depending on user input
0
 
LVL 19

Expert Comment

by:GJParker
ID: 12014684
<< the problem is...the txtName value will always changed depending on user input >>

how does the value change ? text boxes can't be edited by users at run time.

Could you use a parameter field ? to hold the name and then use this in your formula.

Gary



0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

 
LVL 1

Author Comment

by:craduza
ID: 12014697
th value of the text box is changed within a VB Form. Just passing the value to the txtName on code
0
 
LVL 19

Expert Comment

by:GJParker
ID: 12014745
In that case you can use mlmcc idea nad instead of passing the value to a text box via code amend your code to pass the value to a formula.

create a formula with a single space inside double quotes.

then yuo can pass the value to this at runtime using the Text property of the formula object i.e.

Report.FormulaFields.Item(1).text = "My Name"

Gary


0
 
LVL 101

Accepted Solution

by:
mlmcc earned 150 total points
ID: 12023313
Actually you need to include the quotes in the text replacement

Use

Report.FormulaFields.Item(1).text = " 'My Name' "

or

Report.FormulaFields.Item(1).text = chr(34) & "My Name" & chr(34)

mlmcc



0
 
LVL 1

Author Comment

by:craduza
ID: 12042817
i've solved the problem. Just add the needed field in my query...:D thankz for ur help...:D
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 12050409
Glad I could help

mlmcc
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

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…
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

765 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