Hi All,
I have created a very simple form for a progress meter when the database is making copies of databases (eight copies). I have put this in the form load event for the progress meter form, however it appears that the meter doesn't display till the end of the process (as it is working in the background).
Here is the code, if someone can point out what I am doing incorrectly please do.
Thanks
I have created a very simple form for a progress meter when the database is making copies of databases (eight copies). I have put this in the form load event for the progress meter form, however it appears that the meter doesn't display till the end of the process (as it is working in the background).
Here is the code, if someone can point out what I am doing incorrectly please do.
Code:
Dim curpath, newpath As String
curpath = Application.CurrentProject.Path
newpath = curpath
curpath = curpath + "\Barwon.mdb"
newpath = newpath + "\"
DoCmd.SetWarnings 0
FileCopy curpath, newpath + "Northern.mdb"
Forms!frmprogress!lbl1.Visible = True
Forms!frmprogress!BoxOne.Visible = True
FileCopy curpath, newpath + "Western.mdb"
Forms!frmprogress!lbl2.Visible = True
Forms!frmprogress!BoxTwo.Visible = True
FileCopy curpath, newpath + "Southern.mdb"
Forms!frmprogress!lbl3.Visible = True
Forms!frmprogress!BoxThree.Visible = True
FileCopy curpath, newpath + "Eastern.mdb"
Forms!frmprogress!lbl4.Visible = True
Forms!frmprogress!BoxFour.Visible = True
FileCopy curpath, newpath + "Gippsland.mdb"
Forms!frmprogress!lbl5.Visible = True
Forms!frmprogress!BoxFive.Visible = True
FileCopy curpath, newpath + "Grampians.mdb"
Forms!frmprogress!lbl6.Visible = True
Forms!frmprogress!BoxSix.Visible = True
FileCopy curpath, newpath + "Hume.mdb"
Forms!frmprogress!lbl7.Visible = True
Forms!frmprogress!BoxSeven.Visible = True
FileCopy curpath, newpath + "Loddon.mdb"
Forms!frmprogress!lbl8.Visible = True
Forms!frmprogress!boxeight.Visible = True
DoCmd.SetWarnings 1
MsgBox "Copying of all files has successfully completed", vbOKOnly + vbInformation, "Copy Complete"
DoCmd.Close acForm, "frmProgress"
Thanks