Private Sub cmdExecute_Click()
' transfer the new 'Browse_Properties' form
DoCmd.TransferDatabase acExport, "Microsoft Access", _
"\\Peter\C\Home4You\Prog\PALMS_1001.mdb", acForm, "Browse_Properties", "Browse_Properties", -1
' transfer the new 'LettersControl' form
DoCmd.TransferDatabase acExport, "Microsoft Access", _
"\\Peter\C\Home4You\Prog\PALMS_1001.mdb", acForm, "LetterControl", "LetterControl", -1
End Sub
When ths code executes I usually get an 'Object invalid or no longer set' error message when the process gets to the second TransferDatabase operation.
I should say that this does not appear to be in any way connected to the name or type of object being transferred.
Also I use a laptop and a desktop networked together and if I use the menu option: File | SaveAs/Export to copy an object between identical databases on each machine the transfer usually works first time but if I immediately repeat the process to transfer the same or another object the error occurs. If I try the process repeatedly then sometimes, after just three or four attempts I get a warning message to the effect that the SaveAs/Export procedure isn't available.
I need to resolve this because I am trying to use this method to update my clients system by email. i.e. I include any new or modified objects in a small app called Update.mdb which includes the above code in the startup form, suitablly modified to incorporate the objects that need to be transferred. There is a 'master' copy of the front-end application kept on the server and this gets updated when my client runs the Update.mdb application from the email. Each user then grabs a copy of the updated 'master' front-end from the server as and when.
Clearly it's not going too well when this error occurs repeatedly during the update process.
Any suggestions?
' transfer the new 'Browse_Properties' form
DoCmd.TransferDatabase acExport, "Microsoft Access", _
"\\Peter\C\Home4You\Prog\PALMS_1001.mdb", acForm, "Browse_Properties", "Browse_Properties", -1
' transfer the new 'LettersControl' form
DoCmd.TransferDatabase acExport, "Microsoft Access", _
"\\Peter\C\Home4You\Prog\PALMS_1001.mdb", acForm, "LetterControl", "LetterControl", -1
End Sub
When ths code executes I usually get an 'Object invalid or no longer set' error message when the process gets to the second TransferDatabase operation.
I should say that this does not appear to be in any way connected to the name or type of object being transferred.
Also I use a laptop and a desktop networked together and if I use the menu option: File | SaveAs/Export to copy an object between identical databases on each machine the transfer usually works first time but if I immediately repeat the process to transfer the same or another object the error occurs. If I try the process repeatedly then sometimes, after just three or four attempts I get a warning message to the effect that the SaveAs/Export procedure isn't available.
I need to resolve this because I am trying to use this method to update my clients system by email. i.e. I include any new or modified objects in a small app called Update.mdb which includes the above code in the startup form, suitablly modified to incorporate the objects that need to be transferred. There is a 'master' copy of the front-end application kept on the server and this gets updated when my client runs the Update.mdb application from the email. Each user then grabs a copy of the updated 'master' front-end from the server as and when.
Clearly it's not going too well when this error occurs repeatedly during the update process.
Any suggestions?