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

@Variable question

Status
Not open for further replies.

txwylde

Programmer
Jan 25, 2001
60
0
0
US
You know when you create a prompted @variable for start dates, like date(x_log_sale.dt_occurred) BETWEEN @variable('1. Enter Start Date:') AND @variable('2. Enter End Date:')

If I wanted to reuse that @variable in a where statement, what do I have to do? If later on I wanted to go back and set up a where statement where the date was = @variable, what is the syntax for that?

Thanks!
Bill
 
Do the normal selection of the Object and the Relational Operator and then instead of creating a new prompt jus select show list of prompts and it will list all the currently defined prompts. Just select the required prompt.

Sri
 
you could create objects in designer with the @promt clause.
for example
<start date> with defintion
@prompt('!Enter Start Date','D',,,)

and then reuse the object in your where clause where ever u want.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top