Solved

Multiple Parameters for ReplaceSelectionFormula

Posted on 2003-11-10
3
1,240 Views
Last Modified: 2007-12-19
Gud pm!

I am using vb6, crystal4, mysql in my application. I used the replaceselectionselection formula and it worked. My syntax is:

receivedPR.ReplaceSelectionFormula "{purchaserequest.buyerCode}= '" & buyerCode & "'"

However, I dont know how to use it with mutiple parameters and on joined tables. I have used the visual linking  expert to join the tables, and it displayed the correct oputput. My main prob is how to use the replaceselectionformula with multiple parameters and with dates (that is having a range of date to select from).

Also, the DISTINCT in the SQL Query doesnt work. Ive tried the "where 0=1" technique but it just displayed an error.

Hoping you could help me wit this matter. thank you!

0
Comment
Question by:Ceejh
3 Comments
 
LVL 2

Accepted Solution

by:
eulac earned 285 total points
ID: 9721189
try this,

receivedPR.ReplaceSelectionFormula "{purchaserequest.buyerCode}= '" & buyerCode & "' and {fieldDate} = cdate('" & Format(Now,"yyyy/mm/dd") & "') and ..."

or you may use parameterfield instead of recordselectionformula it seasy to use.
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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

920 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

16 Experts available now in Live!

Get 1:1 Help Now