473,491 Members | 2,430 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SendKeys problem

I want to be able to open the printer popup screen while a report is on
the screen.

I would like to have a button on one of the menus that sends the
"control P" combination.

In the past, I used a macro with SendKeys and ^P as the key
combinations. This seemed to work in the past but does not now. I have
changed to XP operating system but I would not think this is the
problem though I am using Access2000.

I have read the documentation and tried all sorts of combinations
unsuccessfully.

Would like advice on how to send a control P using Sndkeys.
Thanks for the help in advance.

Nov 13 '05 #1
5 6258

"Mike" <mf***@aol.com> skrev i en meddelelse
news:11**********************@z14g2000cwz.googlegr oups.com...
I want to be able to open the printer popup screen while a report is on
the screen.

I would like to have a button on one of the menus that sends the
"control P" combination.

In the past, I used a macro with SendKeys and ^P as the key
combinations. This seemed to work in the past but does not now. I have
changed to XP operating system but I would not think this is the
problem though I am using Access2000.

I have read the documentation and tried all sorts of combinations
unsuccessfully.

Would like advice on how to send a control P using Sndkeys.
Thanks for the help in advance.


Check in the menu what your actual shortcuts are ..... mine are in danish
!!!! :-)
SendKeys "%{F}" ' Send ALT + F for File Menu
SendKeys "{æ}" ' Danish for Page-setup

Jan
Nov 13 '05 #2

"Jan Jørgensen" <xx***@pc.dk (fjern xx)> skrev i en meddelelse
news:42*********************@dread11.news.tele.dk. ..

"Mike" <mf***@aol.com> skrev i en meddelelse
news:11**********************@z14g2000cwz.googlegr oups.com...
I want to be able to open the printer popup screen while a report is on
the screen.

I would like to have a button on one of the menus that sends the
"control P" combination.

In the past, I used a macro with SendKeys and ^P as the key
combinations. This seemed to work in the past but does not now. I have
changed to XP operating system but I would not think this is the
problem though I am using Access2000.

I have read the documentation and tried all sorts of combinations
unsuccessfully.

Would like advice on how to send a control P using Sndkeys.
Thanks for the help in advance.


Check in the menu what your actual shortcuts are ..... mine are in danish
!!!! :-)
SendKeys "%{F}" ' Send ALT + F for File Menu
SendKeys "{æ}" ' Danish for Page-setup

Jan


Guessing that they would be :
SendKeys "%{F}" ' Send ALT + F for File Menu
SendKeys "{p}" ' Page-setup

:-)
Jan
Nov 13 '05 #3
Incredible. Thanks for the help.

Nov 13 '05 #4
Thanks for the help.

Nov 13 '05 #5
SendKeys really ought to be avoided unless absolutely necessary.

For what you want there is a RunCommand method - acCmdPrint.
From a procedure call it like...

DoCmd.RunCommand acCmdPrint

- Jim

On 5 Mar 2005 15:09:10 -0800, "Mike" <mf***@aol.com> wrote:
I want to be able to open the printer popup screen while a report is on
the screen.

I would like to have a button on one of the menus that sends the
"control P" combination.

In the past, I used a macro with SendKeys and ^P as the key
combinations. This seemed to work in the past but does not now. I have
changed to XP operating system but I would not think this is the
problem though I am using Access2000.

I have read the documentation and tried all sorts of combinations
unsuccessfully.

Would like advice on how to send a control P using Sndkeys.
Thanks for the help in advance.


Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1443
by: David Kanter | last post by:
Hello, I have a question regarding SendKeys(). I am working on a small VB .Net script that manipulates/automates programs through SendKeys(). Unfortunately, I have run into several problems. ...
6
12173
by: Mr. Bungle | last post by:
I would like to send email automatically via a command button. I have accomplished this just fine through the following code: (Outlook should already be open for reliable results) Private Sub...
2
5676
by: RBohannon | last post by:
I need to create a report in MS Word populated with data from A2K. I have been asked to create the report in Word so that parts of it can be edited as necessary later. The data in the report are...
5
8735
by: Wayne Gibson | last post by:
Hi, Was wondering if somebody could help.. I'm trying to use Sendkeys on a Windows forms. I have entered the following command to simulate a CTRL+ALT+1.. ...
1
7699
by: Bryan | last post by:
I am writing a C# Windows App that updates out Excel reports' modules. The app is complete, but has a problem. The only way MS allows you to unprotect the VBA code in Excel is to do it by hand or...
2
11585
by: David Kanter | last post by:
Hi, I am relatively inexperienced with VB.Net, but I am familiar with many concepts from programming; I have some basic level of competence with C/C++ and Perl, but I just started using VB this...
6
3301
by: Michael Maes | last post by:
Hello, I'm invoking successive SendKeys.SendWait("{BACKSPACE}") SendKeys.SendWait("{DELETE}") in a loop. The issue is that it causes a Beep on every Pass. Setting the 'Handled = True' on...
0
2718
by: neonspark | last post by:
I'm buidling some simple macro functionality for my app so the users can record a sequence of keyboard inputs and replay them reliably via some menu. Originally, I used: protected override bool...
0
1551
by: jairathore | last post by:
Hi, I m working on a project on which my requirment is like that remotely i control another application by using sendkey.sendwait method, i m sending some keystroke to that application and...
0
7115
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6978
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6858
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5451
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4881
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3086
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3076
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
280
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.