If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Crystal Reports > command query?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-29-10, 17:32
bdabaum bdabaum is offline
Registered User
 
Join Date: Oct 2010
Posts: 51
command query?

I created a report using the Wizard and like the way it looks, but I cannot figure out how to set the command query. Currently it is directly linked to a table. Depending on parameters though, I will need to query different sql and get the same report.
Reply With Quote
  #2 (permalink)  
Old 12-30-10, 10:21
bdabaum bdabaum is offline
Registered User
 
Join Date: Oct 2010
Posts: 51
Okay, I figured out the command query with parameters. Just had to learn the syntax for the parameters.
Reply With Quote
  #3 (permalink)  
Old 01-05-11, 12:49
bdabaum bdabaum is offline
Registered User
 
Join Date: Oct 2010
Posts: 51
Sorry for those of you that may be learning Crystal Reports like me, I realize my previous post wasn't a very descriptive solution.

In the Database Expert window, I drilled down into the Create New Connection. Then I selected the database type I wanted to use and rather than picking a table. You pick Add Command and then insert your sql statement with your parameter in the format {?varName}.

Hope that helped someone.
Reply With Quote
Reply

Tags
command query, commands, query

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On