Solved

pass VB variable value to  Seagate Crystal Report  using ADO

Posted on 2002-04-01
3
428 Views
Last Modified: 2006-11-17
I am using Seagate Crystal Report in VB , I want to to pass the values to Seagate Crystal  Report from VB . I am using ADOdb for dataconnecion

      is it any benefit for using seagate crystal report .  
please give me the codeing ....
0
Comment
Question by:yasinmon
[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 Comments
 
LVL 5

Expert Comment

by:kcm76
ID: 6910644
u can use SelectionFormula like

Crystal1.SelectionFormula = "{Query1.Field1}='" &     strVariable & "' and {Query1.Field2}=" & intVariable

0
 
LVL 5

Accepted Solution

by:
hafeezmca earned 50 total points
ID: 6912413
If u want to just display the values from VB to Crystal Report then create few formula fields on the crystal report but remember their order as it matters.
From Vb while calling the report just append this code.
.formula(0)={Vb varaible name or the control name}
....
like this assign as many values as u need.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 6923454
listening
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

729 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