RE: SendKeys Problem
- From: B.S.R. <BSR@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 12 May 2005 08:30:07 -0700
Tim,
I didn't see your post before putting up mine just a few minutes ago. We're
having a problem with SendKeys in Office 2003 and ours also worked in Office
97.
What exactly is happning? Is it just not working? When I step through my
code I can see that it is generating the "keys" but the timing is off. Is
that also happening to you?
"Tim" wrote:
> Hi folks,
>
> My default printer is PDFWriter. I have the following code to export my
> report to pdf format. The code is working perfect in Access 97. It gave me
> a hard time when I used in Access XP (2002). It output my report to
> c:\temp\rpt1.pdf and then it output my report again and have a pop up window
> for the file name. Could anyone tell me the way to fix it?
>
> Thanks in advance.
>
> Tim.
>
> Public Sub test()
>
> SendKeys "c:\temp\rpt1.pdf" & "{ENTER}", False
> DoCmd.OpenReport "rpt1", acViewNormal
>
> End Sub
.
- Follow-Ups:
- Re: SendKeys Problem
- From: Alex White MCDBA MCSE
- Re: SendKeys Problem
- Prev by Date: Sendkeys in Office 2003
- Next by Date: Re: Apply filter to Query
- Previous by thread: Sendkeys in Office 2003
- Next by thread: Re: SendKeys Problem
- Index(es):
Relevant Pages
|
Loading