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!

Passing Parameters

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
How can I pass SQL Query from VB

for eg
(select * from employee_details") ---- Written in Crystal reports

where date_join>txt_joindate.text ----- want to pass from VB

and I want only those records matching the criteria (II)

Thanks
anil
 

Hi anil kumar,


try using recordselection fomula.

Cr1.Selectionformula = &quot;{FldName1} = <value>&quot;

Where Cr1 is Crystal Report ActiveX Control Name
 
Everytime I try to refresh the report from VB I get OLEDB error. How do I write these parameters.

I am using
VB 6.0
SQL Server 7.0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top