[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Multiple Parameters for ReplaceSelectionFormula

Posted on 2003-11-10
3
Medium Priority
?
1,330 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 1140 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

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. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

650 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