M
Mark
Hi,
On a local machine, Win98, Access97, Pkzip (DOS ver), I have a command
button which zips a database onto a floppy. Could someone please tell me
what I need to add in order to automatically close the DOS window after
Pkzip performs the zipping process? TIA.
P.S. The code was given to me by someone else. What is the purpose of the
line: "DoCmd.Close"? -- Pkzip gives a warning that the file can't be opened
if I comment this line out.
What I have so far is:
Private Sub Command55_Click()
Dim zipname, cmdstring, foo
zipname = "fpsdata" & ".zip"
cmdstring = "C:\pkzip\pkzip -xc:\access97 a:\" & zipname _
& " c:\access97\fpsdata.mdb"
DoCmd.Close
foo = Shell(cmdstring, 1)
End Sub
On a local machine, Win98, Access97, Pkzip (DOS ver), I have a command
button which zips a database onto a floppy. Could someone please tell me
what I need to add in order to automatically close the DOS window after
Pkzip performs the zipping process? TIA.
P.S. The code was given to me by someone else. What is the purpose of the
line: "DoCmd.Close"? -- Pkzip gives a warning that the file can't be opened
if I comment this line out.
What I have so far is:
Private Sub Command55_Click()
Dim zipname, cmdstring, foo
zipname = "fpsdata" & ".zip"
cmdstring = "C:\pkzip\pkzip -xc:\access97 a:\" & zipname _
& " c:\access97\fpsdata.mdb"
DoCmd.Close
foo = Shell(cmdstring, 1)
End Sub