Solved

Multiple Parameters for ReplaceSelectionFormula

Posted on 2003-11-10
3
1,278 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
Suggested Courses

738 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