473,658 Members | 2,628 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Controlling Keys in REPORTS

Hello

In order to control keyboard keystrokes in my application, I use the
KeyPreview=Yes,
OnKeyDown Events of every Form with great success. HOWEVER, these
events are not available in REPORTS, opening up my application to ALL
Function/Ctrl/Alt keystrokes that a user can fire and cause problems.
In STARTUP I have Use Access Special Keys set to OFF.
I initially decided NOT to use the AutoKeys Macro, since it affects the
entire app globally, and does not seem to have the flexibility of the
KeyPreview method I'm using. One of my
forms uses a couple customized Ctrl,Alt, and Function keys. In REPORTS
I would like to have ALL FunctionKeys, ALL Ctrl Sequences, and ALL Alt
Sequences OFF, yet maintain my current control of the Forms. How do
I satisfy these requirements ?
I'm sure others must need to control KeyStrokes THROUGHOUT the
application!
Actually, I DoNot need any key strokes in REPORTS at all, just the
mouse click on my custom menu bar will do for Viewing, Printing, and
Exit.

ThankYou
Greg

Jul 10 '06 #1
2 1483
By the way. In case it matters. I use a ReportMenu Form with buttons
for each Report, and use the following code under the button to call
each Report:

DoCmd.OpenRepor t strReport, acViewPreview, , strWhere
Ap******@gmail. com wrote:
Hello

In order to control keyboard keystrokes in my application, I use the
KeyPreview=Yes,
OnKeyDown Events of every Form with great success. HOWEVER, these
events are not available in REPORTS, opening up my application to ALL
Function/Ctrl/Alt keystrokes that a user can fire and cause problems.
In STARTUP I have Use Access Special Keys set to OFF.
I initially decided NOT to use the AutoKeys Macro, since it affects the
entire app globally, and does not seem to have the flexibility of the
KeyPreview method I'm using. One of my
forms uses a couple customized Ctrl,Alt, and Function keys. In REPORTS
I would like to have ALL FunctionKeys, ALL Ctrl Sequences, and ALL Alt
Sequences OFF, yet maintain my current control of the Forms. How do
I satisfy these requirements ?
I'm sure others must need to control KeyStrokes THROUGHOUT the
application!
Actually, I DoNot need any key strokes in REPORTS at all, just the
mouse click on my custom menu bar will do for Viewing, Printing, and
Exit.

ThankYou
Greg
Jul 10 '06 #2
OK

To my relief, I discovered that I can use the Autokeys Macro to disable
keys throughout the application, and still be able to override this in
my Forms using the KeyPreview/OnKeyDown to return certain functionality
like F1 if I choose. One problem is that the AutoKeys Macro does not
let you control ALL keys! The Alt key cannot be controlled here.
However, you can control the alt key with the KeyPreview/OnKeyDown
method. The AutoKeys Macro allows me to supress keys throughout the
app, including my problem with Reports, which could not be controlled
when I used the KeyPreview/OnKeyDown Method (since these are not
available in a Reports Events).
So, a combination of the aforementioned methods gave me the Best
keyboard control I could find. One last problem is that the
AutokeysMacro DoesNot allow control over the Alt key, however the
KeyPreview/OnKeyDown method did in Forms, BUT not in Reports.
Oh well! This I can Live with for now, with one exception. Alt-F4 in
reports, will shut down the application.

I Hope others find value in these findings!

Greg
Ap******@gmail. com wrote:
By the way. In case it matters. I use a ReportMenu Form with buttons
for each Report, and use the following code under the button to call
each Report:

DoCmd.OpenRepor t strReport, acViewPreview, , strWhere
Ap******@gmail. com wrote:
Hello

In order to control keyboard keystrokes in my application, I use the
KeyPreview=Yes,
OnKeyDown Events of every Form with great success. HOWEVER, these
events are not available in REPORTS, opening up my application to ALL
Function/Ctrl/Alt keystrokes that a user can fire and cause problems.
In STARTUP I have Use Access Special Keys set to OFF.
I initially decided NOT to use the AutoKeys Macro, since it affects the
entire app globally, and does not seem to have the flexibility of the
KeyPreview method I'm using. One of my
forms uses a couple customized Ctrl,Alt, and Function keys. In REPORTS
I would like to have ALL FunctionKeys, ALL Ctrl Sequences, and ALL Alt
Sequences OFF, yet maintain my current control of the Forms. How do
I satisfy these requirements ?
I'm sure others must need to control KeyStrokes THROUGHOUT the
application!
Actually, I DoNot need any key strokes in REPORTS at all, just the
mouse click on my custom menu bar will do for Viewing, Printing, and
Exit.

ThankYou
Greg
Jul 10 '06 #3

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

Similar topics

31
3367
by: Robert Brown | last post by:
Let's say I have a type hierarchy: (just an example) the general entity customer: CREATE TABLE customer(customer_id int, customer_name varchar(250), customer_type int) three specific customer subtypes: 1 - business, 2 - home, 3 - university
3
3666
by: Scott M | last post by:
Hi, I am currently trying to write a simple game using vb.net the form I am working on is 800*600 (this is set as the maximum size) and autoscroll is set to true. The user moves around the screen by moving a picturebox (sprite) with the cursor keys. When the user hits the bottom of the screen I want the screen to automatically scroll down to keep the picture box in view - The screen
0
801
by: David Baumgarten | last post by:
I have created a datatable inside of a datagrid to be populated by a user. Then it will be uploaded into a sql database. I need to control the number of characters typed into each cell. I tried: Col2.MaxLength = 60 This allows the user to put in any number of characters and then after they click off, it checks the characters and if characters are > 60 then displays and error msg to the user.
10
3842
by: Steve McLellan | last post by:
Hi, Does anyone know if it's possible (and if so, how) to intercept presses on 'multimedia keys' you find on keyboards? Curiosity more than anything. Only manufacturers seem to put their own random gubbins onto their keyboards, so presumably there isn't any kind of standard. Obviously their applications are capable of listening to the buttons so it's possible at some level. Possibilities in either .NET or Win32 welcome (hence the cross...
8
2175
by: GaryDean | last post by:
We have been noticing that questions on vs.2005/2.0 don't appear to get much in answers so I'm reposting some questions posted by some of the programmers here in our organization that never got answered... In 1.1 we always did our own myDataAdapter.fills and we liked that control for lots of good reasons. Now the new DataSource (or is it a TableAdapter:Dataset) automatically fills the Gridview. How can we control that fill? In a...
1
3840
by: duzhidian | last post by:
hello all, I only use indexed arrays. When I use array_intersect function, of $a3 = array_intersect( $a1, $a2 ), I just need the vales of intersect array and let keys to be re-numberred from 0.; I found the intersect array $a3 have the correct values but keep the keys of $a1. When I use
0
1409
by: gerald.zimmerman | last post by:
Has anybody encountered the issues where you are unable to backup the encryption keys for your Reports Server? It claims that I am not meeting the requirements, although, it does not seem possible to determine what they may be. IE: ##### ReportServicesConfigUI.WMIProvider.WMIProviderException: An unknown error has occurred in the WMI Provider. Error Code 80070A91 ---System.Runtime.InteropServices.COMException (0x80070A91): Password...
6
9026
by: reppisch | last post by:
Hi Ng, I have a multiset for keeping elements sorted in a container but key values may also be equal. Is there any guaranteed traversal order within the duplicate keys of a multimap? When inserting duplicate keys to the multiset i need output order to be in insert order.
0
1819
by: russtee | last post by:
I am creating crystal reports line graphs using vb.net. When the number of records is small it labels the x-axis. When the number of points is large it doesn't label them at all. I need to be able to label the x-axis - at least with the start and end points. It would be nice to see some increment labeling also. I've been playing with the graph properties - but I am not getting it.
0
8427
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8523
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8626
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7355
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6178
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4175
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4334
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.