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!

Problems with the export feature

Status
Not open for further replies.

aplusc

Programmer
Feb 17, 2002
44
US
I'm running Crystal for VB and I'm trying to create a button that will automatically open the Crystal export dialog (without opening the report first). Sounds simple enough, but for some reason it exports ALL the 100,000 records from the table, not those that were selected as part of the query. This does not happen when I open it through the viewer and then export.

I do something like this:

CrystalReport1.SQLQueryString = "SELECT * FROM ... "
CrystalReport1.Export

What am I doing wrong?
 
I personally make the query inside the report or use a stored procedure, then export it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top