G
Guest
Dim sCommand As String, lTaskID As Long
sCommand = """" & SysCmd(acSysCmdAccessDir) & "msaccess.exe """ _
& CurrentDb.Name &
""c\finalproject\sjacadets.mdb"/wrkgrp:c:\finalproject\system.mdw""" &
SysCmd(acSysCmdGetWorkgroupFile) _
& """" ' and add any other switches you require here
lTaskID = Shell(sCommand, vbMaximizedFocus)
If lTaskID <> 0 Then AppActivate lTaskID
DoCmd.Quit
can anyone tell me if this code is correct, and if not supply a suggestion
thanks in advance
sCommand = """" & SysCmd(acSysCmdAccessDir) & "msaccess.exe """ _
& CurrentDb.Name &
""c\finalproject\sjacadets.mdb"/wrkgrp:c:\finalproject\system.mdw""" &
SysCmd(acSysCmdGetWorkgroupFile) _
& """" ' and add any other switches you require here
lTaskID = Shell(sCommand, vbMaximizedFocus)
If lTaskID <> 0 Then AppActivate lTaskID
DoCmd.Quit
can anyone tell me if this code is correct, and if not supply a suggestion
thanks in advance