Solved

Multiple Parameters for ReplaceSelectionFormula

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

747 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

11 Experts available now in Live!

Get 1:1 Help Now