Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Params + Command SQL

Status
Not open for further replies.

fmrock

Programmer
Sep 5, 2006
510
US
Is there a way to use a parameter that allows multiple, to be using in a SQL Command? Any tricks to allow one or many into a SQL Command.
 
There is an faq766-6779 on this topic. You could alternatively:

1) upgrade to CR2008 which allows multiple values
2) ask the user to enter the values at the prompt like this:

'ABC','DEF','GHI'

Then in the command set up the parameter on the right as a string, and instead of enclosing the parm in single quotes, set up the selection clause like this:

table.field in ({?Parm})

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top