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 SkipVought 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
0
0
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
 
I assume you are using the RDC.

Two possibilities.

You can directly modify the record selection formula from VB or you can have paramaters in your report and you can load them via VB. Editor and Publisher of Crystal Clear
 
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!!!

 
Thanks Buddy i got it. Its working already...
 
Thanks Buddy i got it. Its working already...[cheers]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top