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!

crystal report parameters

Status
Not open for further replies.

irlbinky

Programmer
Aug 7, 2002
23
0
0
IE
Hi
I need help - preferably in code form as how I can pass the parameters to a Crystal Report Query (below) from text boxes in a form.
SELECT * FROM $ACCOUNT_TREELIST$$(1,0,NULL,(?param1), (?param))

Both paramaters are numbers.

Any help would be appreciated.
Thank
Cathal
 
Here is the basic syntax you will need to place the text box values into your SQL statement as numbers.

SELECT * FROM $ACCOUNT_TREELIST$$(1,0,NULL,(" & val(form1.text1.text) & "), (" & val(form1.text2.text) & "))"
Thanks and Good Luck!

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top