try this:
VB Code:
  1. if dir("D:\Sohrab\Multicompany\Dbs" & Newdatabase & ".mdb") = "" then
  2.     msgbox "there is no such file available"
  3.     stop
  4. end if
  5.  
  6. if dir("D:\Sohrab\Multicompany\ Reports\ Report1.rpt") = "" then
  7.     msgbox "there is no such file available"
  8.     stop
  9. end if
  10.  
  11.  
  12. Cry1.DataFiles(0) = "D:\Sohrab\Multicompany\Dbs" & Newdatabase & ".mdb"
  13.  
  14. Cry1.ReportFileName = "D:\Sohrab\Multicompany\ Reports\ Report1.rpt"
  15.  
  16. Cry1.RetrieveDataFiles
  17. Cry1.Action = 1
If both files are available and no error occurs then the only other thing I can think of is that Datafiles(1) or another number is visible at the moment - I haven't used Crystal reports in about 2 years.

Does this help

Rob