Trevor
01-24-2008, 04:38 PM
I am trying to open outlook from access and minimize outlook after open,
My code forsome reason minmizes access and opens outlook. here is my code, I am using Sendkeys to min OL ( "%" = alt, " " = spacebar, "n" = leter n)
If I place the send keys on the same line as the outlook path or the call sell , I get an error from the compiler "expected end of statement", even when using &
stAppName = "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE"
SendKeys "%" & " " & "n"
Call Shell(stAppName, 1)
End Sub
thanks for any help.
Trevor
My code forsome reason minmizes access and opens outlook. here is my code, I am using Sendkeys to min OL ( "%" = alt, " " = spacebar, "n" = leter n)
If I place the send keys on the same line as the outlook path or the call sell , I get an error from the compiler "expected end of statement", even when using &
stAppName = "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE"
SendKeys "%" & " " & "n"
Call Shell(stAppName, 1)
End Sub
thanks for any help.
Trevor