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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Paramater field to change table

Status
Not open for further replies.

thorny00

Programmer
Feb 20, 2003
122
US
Using CR v10
I have tables that have the same fields in them that are being used in the report. What I’d like to do is set up a parameter field where when a client is choosen, it points the report to that clients table. Example:
Client Table
Abc Abc.elig
Xyz Xyz.elig

Would this be possible? Thanks in advance for all of your help and time, it is greatly appreciated.
 
Insert a command and in the command, create a string parameter {?table}. Then set up your command like this:

Select {?table}.`Client`, {?table}.`Elig`
From {?table}

I first saw this idea in one of Synapsevampire's posts. Although you would ordinarily enclose a string parameter in single quotes in a command, you do not do that for this purpose.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top