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

How to integrate crystal report using Visual Basic 6.0 1

Status
Not open for further replies.

SpeakUp

MIS
Apr 1, 2002
19
PH
I had this program using Data Report in Visual Basic and im trying to use Crystal Report 7.0 but the problem is how can i filter the data using visual basic from my Crystal Report.

Any help is greatly appreciated.... Thanks
 
Actually i made the report and it goes like this...

Cr1.ReportFileName=app.path & "\inv.rpt"
Cr1.DiscardSaveData = True
Cr1.WindowState = crptMaximized
Cr1.Action = 1

I have a combobox with branches and the code goes like this...

set rs = db.OpenRecordset("SELECT * FROM tComputers WHERE Branch ='" & combobox & "'")

But my problem is i want to filter the data inside the report. I want only the selected branches... How do i do this... Please Help!!!

Thanks!!!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top