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

Passing Parameters to report with no popup

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am using selection formulas to draw data from an access database. I would like to add a parameter to the selection formula in the form of a where clause, But I do not want to issue a popup to the user. I would like to set the parameter programatically. I am using VisualC++ and the RDC. Is this possible?

I am currently limiting my resultset with a formula, but that takes to long, as the entire database is grabbed before the formula is run against the data to limit the results for the report. A where clause would greatly speed things up for me as my datasets are huge.
 
I've got the same pb with VC++.
I use the CDO lib.
I can open a report, open a preview windows, send data from a rowset, but i can't send a parameter value.
So if U receive a solution .... please
dubourg.vincent@libertysurf.fr

good luck
 
I've found some examples where it was more efficient to pass to CR the entire record selection with
crObj.RecordSelectionFormula =
"{client.id} in ['1','2','7', '12']"
Editor of Crystal Clear
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top