PDA

Click to See Complete Forum and Search --> : Probably an easy crystal report question


jritchie
Nov 23rd, 1999, 03:08 AM
Am using vb5 professional version with the version of crystal reports that ships with it. Have built a report with the database location of c:\data\sales. During run-time can l change the data location to something like \\mickey\data\sales? If so what do l set in vb code to do it

Thanks in advance
Jeff

Aaron Young
Nov 23rd, 1999, 03:23 AM
I use Crystal Report 7 Pro, so I can't Garauntee this will work for you, but there may be a DataFiles Collection, set this to the New Database Location Before Displaying the Report, eg.

CrystalReport1.DataFiles(0) = "Path to New DB Location"

------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
adyoung@win.bright.net