How can I pass values to Crystal 9 “Formulas� and “Selection Formula� with VB6

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Feb 2005
Posts: 4
Reputation: dimuthubas is an unknown quantity at this point 
Solved Threads: 1
dimuthubas dimuthubas is offline Offline
Newbie Poster

How can I pass values to Crystal 9 “Formulas� and “Selection Formula� with VB6

 
0
  #1
Feb 15th, 2005
Hi..

I have done some programs in VB6 (SQL Database). With the Crystal report (Vertion 4).

Now I wanted to do these things with Crystal-9. But the procedure to pass values to “Formulas� and “Selection Formula� is different and I can not get it done.

So pls can u give me a small sample code for it. I’ll show u a sample how I have get it done in Crystal-4.

Ex.
This is how i have pass values to “Formulas�

CrystalReport1.Formulas(0) = "PAWBNo='" & Trim(Text11.Text) & "'"
CrystalReport1.Formulas(1) = "AWB_Pcs_Wgt='" & Trim(Text13.Text) & "'"
CrystalReport1.Formulas(2) = "CoName='" & Trim(Text6.Text) & "'"


This is how i have pass values to “Selection Formulas� :-

CrystalReport1.SelectionFormula = "{PF_DOrder.SerNo} = '" + Trim(Text17.Text) + "'"
CrystalReport1.Action = 2 'Display


pls. write to me...i'm runing out of time..

Appreciate u’r help..

Bassa
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 4
Reputation: dimuthubas is an unknown quantity at this point 
Solved Threads: 1
dimuthubas dimuthubas is offline Offline
Newbie Poster

Re: How can I pass values to Crystal 9 “Formulas� and “Selection Formula� with VB6

 
0
  #2
Feb 19th, 2005
Hi….

I have attached a very simple code to show u how I have tried this with Crystal 8. . I was able to find the solution for “Selection formula�.

But Still I couldn’t find a way to pass a value Normal “Formula�. Can somebody c what the here is…???


Thanking u
Bassa
Attached Files
File Type: zip CrystalReport.zip (4.8 KB, 309 views)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC