Quote Originally Posted by Vincent Oorsprong View Post
Mdlc,

When you make use of the DataFlex Embedded database the easiest step is to set pbAutoLocateDFFiles to true. When you use a foreign database you need to update the psDatabaseConnection.

I like to give you more information but please first tell us what database you use and whether you have enough info with above topics.
Hi Vincent,

Thanks for the reply.
Now I remember doing this for a past project.
I am using DF Embedded db.

I did try pbAutoLocateDFFILES to true, was not working until I remember that I made it work for the past project only if DR file point to invalid datapath (I created a dummy workspace copy, set the .dr files to its tables, then delete that workspace)*. So when my dataflex program is unable to locate that path of the .dr file, it looked for my intended datapath because of the line "Set psDatabaseName of oReport to sReportID (trim(sDataPath) + "\filelist.cfg")"

It is working now.

*Do I really have to create an invalid path for the .DR file?