Parameter Query

From: Mudassir Iqbal (Mudassiriqbal_at_yahoo.com)
Date: 02/28/04


Date: Sat, 28 Feb 2004 02:51:07 -0800

SELECT mcs_shopsetup.Shop_code
FROM mcs_shopsetup
WHERE NOT EXISTS
(SELECT Mcs_form.shop_code FROM Mcs_form
WHERE Mcs_form.shop_code = Mcs_shopsetup.shop_code and
Mcs_form.area_code = Mcs_shopsetup.Shop_area and
Mcs_form.lct_code = Mcs_shopsetup.Shop_location
AND Mcs_form.cal_code =65 and mcs_form.area_code=1 and
mcs_form.lct_code=1) and
(mcs_shopsetup.Shop_area=1 and
mcs_shopsetup.Shop_location=1);

I want to replace all the numeric values with the
variable, so that I can pass the values from the VB
Application.. I m using Crystal report as the Reporting
tool.

So is there any way to pass the values from the VB to the
subquery as we can send the filter criteria from the vb
direc tto the main query.

Mudassir Iqbal



Relevant Pages

  • Re: pause code in a web application?
    ... query the object is fine but for the longer query the object goes null after ... Paul G ... Software engineer. ... The document is from the crystal report engine so it is ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: how to limit size of record returned
    ... >>Why wouldn't you just limit your crystal report to only displaying 20 ... >>But, if you really want to do it backwards and format it in your query, ... formatting in your stored procedures. ...
    (microsoft.public.sqlserver.programming)
  • Re: how do I make the crystal report to return me no duplicate records?
    ... This is usually a result of the query. ... procedures in your database, ... > how do I make the crystal report to return me no duplicate records? ...
    (microsoft.public.vb.crystal)
  • Re: duplication of entries in crystal reports
    ... Then you aren't using the same query in the crystal report. ... database menu is a Show SQL query option, ...
    (microsoft.public.vb.crystal)
  • Crystal Reports: Display data according to session
    ... I am trying to display a crystal report in .aspx page. ... But this query does not work.... ... I dont have much knowledge how to maintain sessions. ...
    (microsoft.public.dotnet.languages.csharp)