Solved

pass VB variable value to  Seagate Crystal Report  using ADO

Posted on 2002-04-01
3
405 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
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 100

Expert Comment

by:mlmcc
ID: 6923454
listening
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

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

930 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

11 Experts available now in Live!

Get 1:1 Help Now