Link to home
Start Free TrialLog in
Avatar of prashant786
prashant786

asked on

I want to refresh data in crystal report from vb aplication

I want to refresh data in crystal report from vb aplication.

I am using MS Acess Database.

I had selected the option in crystal report option "refresh data on every print"

If I am giving discard saved data true from vb it gives the error.

Please guide me how to refresh the data from vb application.
Avatar of Mike McCracken
Mike McCracken

What error do you get?

What code are you using in VB to display the report?

mlmcc
Avatar of prashant786

ASKER

There is no error

Old data is displayed. and it is not refreshed.

guide me how to refresh
You said
>> If I am giving discard saved data true from vb it gives the error.


I don't think it takes a value

Try using before you open the report

crRpt.DiscardSavedData

mlmcc
What code are you using to display the reports?

mlmcc
I am using ocx. Code is as below :

rep.destination=crpttowindow
b=chr$(34) &text1.text & chr$(34)
d="{aa.kap}=" &b
rep.groupselectionformula = d
rep.action=1

If I am giving discard saved data then it is givin error :

unable to connect; incorrect log on parameters

So please solve my problem
Hellooo please answer me mlmcc

waiting for your answer
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial