Easy question from sending parameters from vb6 to crystal report

Posted on 2003-03-27
Medium Priority
Last Modified: 2011-10-03
Hello there fellow coders!!
I got stupid question i've been fighting for too long... :)
I have program where user can choose day from dtpiker and CR would show records.
how can i send this date from vb6 to crystal report so it would only show records which are stamped that date.
like "SELECT * FROM XXX WHERE Stamp =" & dtpicker1.value
i'm having problem to send that dtpicker1.value to crystal report.

Thank you !!!

Question by:frdf
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
  • 2
LVL 101

Accepted Solution

mlmcc earned 120 total points
ID: 8217453
What problem are you having?

What code are you using?

CR does not allow the SELECT part to be changed by an application.

rpt.RecordSelectFormula = "{ViewName.Stamp} = " & dtpiker

Since it is a date you might have to use

rpt.RecordSelectFormula = "{ViewName.Stamp} = '" & dtpiker & "'"

If the problem is that you aren't selecting any records it may be that STAMP is a datetime field and the time values don't match.


LVL 101

Expert Comment

ID: 8221405
Glad I could help


Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
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…

765 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