Hi all,
I have a problem accessing a Crystal report in VB code. I use VB 6.0
Normally I don't have problems with this but I want to retrieve data from an access database protected with a password.
When I open the report with crystal reports, I must enter the password and then the report opens fine. But when I want to open it through code in VB, the report opens but not showing any data.
How must I include the password in the code so the report shows all the data?
I use Crystal Reports for Visual Basic 4.6.1.0 CRW32 4.6.1.116.
To retrieve data from CR I putted a CrystalReport control on my form. Then I use following syntax to display the report that was premade by Crystal Reports.
***********************Code begins************
Dim sName As String
sName = InputBox("What name do you want to print?"
rptReport.SelectionFormula = "{myTable.Name}='" & sName & "'"
rptReport.PrintReport
********************* end code********************
Is there anyone who can help me with this?
Thx in advance
I have a problem accessing a Crystal report in VB code. I use VB 6.0
Normally I don't have problems with this but I want to retrieve data from an access database protected with a password.
When I open the report with crystal reports, I must enter the password and then the report opens fine. But when I want to open it through code in VB, the report opens but not showing any data.
How must I include the password in the code so the report shows all the data?
I use Crystal Reports for Visual Basic 4.6.1.0 CRW32 4.6.1.116.
To retrieve data from CR I putted a CrystalReport control on my form. Then I use following syntax to display the report that was premade by Crystal Reports.
***********************Code begins************
Dim sName As String
sName = InputBox("What name do you want to print?"
rptReport.SelectionFormula = "{myTable.Name}='" & sName & "'"
rptReport.PrintReport
********************* end code********************
Is there anyone who can help me with this?
Thx in advance