Solved

How do I create a 'from' 'to' in the Command parameter?

Posted on 2011-09-29
3
282 Views
Last Modified: 2012-05-12
sample of queryin command:
,D.Dia
,D._Session_
,D._Modified_
,D._Status_
,D._Created_

FROM dbo."Ventas en Pesos" A
INNER JOIN dbo.Dim_Categoria B
ON A.Dim_Category_dKey = B.Dim_Category_dKey  
INNER JOIN Dim_Geografica C
ON A.Dim_Geografica_dKey = C.Dim_Geografica_dKey
INNER JOIN Dim_Tiempo D
ON A.Dim_Tiempo_dKey = D.Dim_Tiempo_dKey

WHERE C.Compania ={?Compania}
AND C.Region ={?Region}
AND C.Tienda = {?Tienda}
AND B.Area = {?Area}
AND B."Nivel Proceso" = {?Nivel Proceso}
AND B.Categoria = {?Categoria}
AND FROM D.Semana={?Semana}
TO D.Semana={?Semana}

What is the proper syntax and how do I setup the command prompt parameter for

AND FROM D.Semana={?Semana}
TO D.Semana={?Semana}

0
Comment
Question by:garyjgs
  • 2
3 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 36817085

Is that a rnge parameter?
D.Semana IN {?Semana}

Otherwise use a start and end parameters

AND D.Semana >={ ?Start}
AND D.Semana< ={?End}

mlmcc

0
 

Author Comment

by:garyjgs
ID: 36818126
That did not want to work.  When I create the parameter on the command prompt, what Name is it looking for?
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 36818359
WHat do you mean NAME?
If you mean the popup that says NAME it wants you to give the parameter a NAME

mlmcc
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

746 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