Solved

Multiple Parameters for ReplaceSelectionFormula

Posted on 2003-11-10
3
1,271 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
[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 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Suggested Solutions

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 …
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…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

735 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