>Hi,
> Any body know how to change the datasource name of a crystal report, programatically.
THISFORM.CrystalReport.DataFiles(0) = lcDbfName
if you have more than one, next one is .DataFiles(1) etc. Don't know about indexes, if there's something like this for them, or it can only open the structural one. The lcDbfName is a name of a Fox2x table - that's what we're using.