Lynus
Technical User
- Apr 12, 2003
- 69
I have built my first crystal report in CR8. When I built the report I chose a pre-existing access database. I connected to the database and pulled all the fields that I needed to in order to build my report. Works Great!. But now I have a problem. The Database that I need to connect to isnt the same as the one I built the report from. And to make matters worse I need to access it through VB. So I have the CR component loaded and on the aplication. It calls the report this way:
CR1.ReportFileName = App.Path & "\ChaPrint.rpt"
CR1.Action = 1
Now the problem is that ChaPrint is the report name but how do I change the database its pointing to from within VB???
Any ideas would be greatly appreciated.
Thanks
CR1.ReportFileName = App.Path & "\ChaPrint.rpt"
CR1.Action = 1
Now the problem is that ChaPrint is the report name but how do I change the database its pointing to from within VB???
Any ideas would be greatly appreciated.
Thanks