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

Hi All, Does anyone know how I c

Status
Not open for further replies.

zaq888

MIS
Jun 2, 2003
46
MY
Hi All,

Does anyone know how I can pass a SQL statement as a parameter into the Crystal Report Designer from my source code.

the SQL statement is:

SELECT TUnit.[cs-username]
FROM TUnit LEFT JOIN [SELECT * FROM Tdata WHERE Tdata.date BETWEEN ? AND ?]. AS MyTempTbl ON TUnit.[cs-username] = MyTempTbl.[cs-username]
WHERE (((MyTempTbl.[cs-username]) Is Null))
ORDER BY Tunit.[cs-username];

? stand for datepicker.value

I'm Keep Studying.... please show the way...
Not Good in English
 
Are you using VB, and which version of Crystal, and which method are you using for invoking the report?

Here's the listing of sample applications:


Check for SQLQueryString, which may allow for this depending upon whatever it is that you are doing. Otherwise consider using ADO.

-k
 
i'm using vb 6 and crystal report 8.0

Can u help me out

I'm Keep Studying.... please show the way...
Not Good in English
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top