Hi I am try to get a call shell statment set up but I can't seem to get it right. Here is what I have attempted:
[/CODE]Private Sub Command0_Click()
Dim CComp As New CComputer
Dim straccessdir As String
Dim fullpath As String
Dim Test As String
Dim DPath As String
Dim Workgroup As String
With CComp
straccessdir = .AccessDir
End With
'This is result I am looking for
'Call Shell("""C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE"" ""C:\DCPFRR\DCPFRRRMA_FE.mde"" /wrkgrp ""\\aagsrv1\dcprma\fe\frrrmasecure.mdw"" /User frruser", 1)
fullpath = straccessdir & "MSACCESS.EXE"
DPath = "C:\DCPFRR\DCPFRRRMA_FE.mde"
Workgroup = "\\aagsrv1\dcprma\fe\frrrmasecure.mdw"
Test = fullpath & "& DPath &" & " /wrkgrp " & Workgroup & " /User frruser"
Call Shell(Test, 1)
End Sub
Any suggestions?
Thanks
[/CODE]Private Sub Command0_Click()
Dim CComp As New CComputer
Dim straccessdir As String
Dim fullpath As String
Dim Test As String
Dim DPath As String
Dim Workgroup As String
With CComp
straccessdir = .AccessDir
End With
'This is result I am looking for
'Call Shell("""C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE"" ""C:\DCPFRR\DCPFRRRMA_FE.mde"" /wrkgrp ""\\aagsrv1\dcprma\fe\frrrmasecure.mdw"" /User frruser", 1)
fullpath = straccessdir & "MSACCESS.EXE"
DPath = "C:\DCPFRR\DCPFRRRMA_FE.mde"
Workgroup = "\\aagsrv1\dcprma\fe\frrrmasecure.mdw"
Test = fullpath & "& DPath &" & " /wrkgrp " & Workgroup & " /User frruser"
Call Shell(Test, 1)
End Sub
Any suggestions?
Thanks