>FUNCTION ChangeTableLoc >LPARAMETERS oTable, cNewTableLoc > >oTable.SetTableLocation(cNewTableLoc) > >RETURN >>
* oRPT - object reference to currently open report ? oRPT.Database.Tables(1).SetTableLocation("c:\zzz.dbf","c:\zzz.dbf", "")You would need to change the path for each table used in your report. In the above example, I'm assuming their is only one. You can get the total # of tables using code like:
* toReport - object reference to currently open report lnTableCount = toReport.Database.Tables.Count