Discussion Locked

VB 6-Crystal Report

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi
pls give a answer for the following.
How can run a crystal report in vb 6.
I have already build a crystal report but I want to select the parameters from the form (vb front end). And also use odbc connection and database through the vb

pls give suitable instructions to me

thanking you

with reg
martin

1 reply

by nomikhan_1979

first you have to retrive the component of crystal report
rpt1 is the name of componenet
and on click event you can write this code
code start from here

If Option1.Value = True Then
RPT1.SelectionFormula = "{MD.ID}= " & """" & Text1.Text & """"
RPT1.RetrieveDataFiles
RPT1.Action = 1
End If

This discussion is closed to new replies.