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!

Using Crystal Reports in Visual Basic 6.0 1

Status
Not open for further replies.

brannon

Programmer
Dec 28, 2000
6
0
0
US
I'm trying to build an SQLString for the crystal report control. I'm new to Crystal Reports. If anyone can help me, I'm desperate. I need to assign the sqlString to the Crystal Report. I've tried this
With CrystalReport1
.SQLString = "Select * from MyTableName"
End With
But what is the next step.
Please Help. Thanks to all.
 
I think you want .SQLQueryString rather than .SQLString. That'll replace the sql string for CrystalReport1 with what you have. Then you should be able to just do whatever with your report - view it, export it, whatever.

By the way the SQLQueryString only works if you're using the RDC component to create the report. It looks like that's what you're doing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top