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!

SQLQueryString does not work

Status
Not open for further replies.

adigrescenko

Programmer
Mar 7, 2002
5
RO
When I use :
Report.SQLQueryString = "Select * from MyTable"
it is not working
If I stop the program on tis line, end I run it step by step, after executing this line, SQLQueryString = "". Nothing happend. Why?
What should I do?
 
There is some problem in the way you are connecting to your database. Can you get data out just connecting through Crystal using the ODBC DSN?

Howard Hammerman,

Crystal Reports training, consulting, books, training material, software, and support. Scheduled training in 8 cities.
howard@hammerman.com
800-783-2269
 
I connect this way:

DatabasePath = "c:\work\adi\test.mdb"
TableName = "MyTable"
DBTables.Add DatabasePath, TableName

than

str = "Select * from Table"
Report.SQLQueryString = str
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top