My clients are allowed to modify reports in the front end database (there is no code behind). When they install a new front end we need to get their modified reports into the new front end. Unless you can suggest a better strategy, I need to copy the report object (not the data) into the back end after it i’s modified. Then when a new version is installed it copies them back. I am having trouble with transferdatabase method and the help isn’t much help. the example it has is –
DoCmd.TransferDatabase acImport, “Microsoft Access”, “C:My DocumentsNWSales.mdb”, acReport, “NW Sales for April”, “Corporate Sales for April”
this doesn’t have a path to the destination database and the help talks about import/exporting data not objects.
here’s the code I am trying to make work but I get an err 13 Type mismatch
strSource = “C:DataFrontend.mdb”
strDestination = “C:DataBackend.mdb”
strObjectName = “rptDailySummary”
strDatabaseType = “Microsoft Access”
DoCmd.TransferDatabase , acExport, strDatabaseType, strSource, acReport, strDestination, strObjectName, strObjectName