473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Autokey Issues - Access 2000

I am trying to find a way to disable my autokeys when I am in my login form. My problem is that when I open my login form, my users can still get out of it by pressing the autokeys. Is there a way that I can disable them in that form only?

Any help would be greatly appreciated.

Thanks.
Sep 11 '07 #1
5 2088
MMcCarthy
14,534 Expert Mod 8TB
I am trying to find a way to disable my autokeys when I am in my login form. My problem is that when I open my login form, my users can still get out of it by pressing the autokeys. Is there a way that I can disable them in that form only?

Any help would be greatly appreciated.

Thanks.
What keys are you referring to exactly?
Sep 13 '07 #2
I'm looking to do the same thing. I've set up a login screen but users can get around it to the functions by hitting F1, F2, F3, etc. I need to disable the F keys as soon as Access starts. Anyway to do it?

Sorry. To clarify, I'm running Access 2000.


What keys are you referring to exactly?
Dec 18 '07 #3
missinglinq
3,532 Expert 2GB
Goto Properties - Events for your form and set Key Preview to Yes, the in the code module behind your login form:

Expand|Select|Wrap|Line Numbers
  1. Private Sub form_keydown(KeyCode As Integer, Shift As Integer)
  2. Dim NewRecHit As Long
  3.  
  4.     Select Case KeyCode
  5.  
  6.         Case vbKeyF2
  7.          KeyCode = 0
  8.  
  9.         Case vbKeyF3
  10.          KeyCode = 0
  11.  
  12.         Case vbKeyF4
  13.          KeyCode = 0        
  14.  
  15. Case Else
  16.  
  17. End Select
You can add as many more FKeys as you like in this manner. It's generally considered bad form to spike F1 (Help) but you can if you like. When moving to another form everything will be restored.

You can use this same technique to cancel the function of most keys as well as to change the function of keys, but always keep in mind the native purpose of the keys! Even if you don't use the normal functions of the keys, your users might!

Welcome to TheScripts!

Linq ;0)>
Dec 18 '07 #4
Wicked! That's perfect. I discovered an autokeys macro that activates all the F keys for use in the rest of the database... but I was requested to add a login form and users could skip around it, so I wanted to make sure that they actually legitimately logged in before they could use the special functions.

Thank you so much for the help and the welcome! :-)


Goto Properties - Events for your form and set Key Preview to Yes, the in the code module behind your login form:

Expand|Select|Wrap|Line Numbers
  1. Private Sub form_keydown(KeyCode As Integer, Shift As Integer)
  2. Dim NewRecHit As Long
  3.  
  4.     Select Case KeyCode
  5.  
  6.         Case vbKeyF2
  7.          KeyCode = 0
  8.  
  9.         Case vbKeyF3
  10.          KeyCode = 0
  11.  
  12.         Case vbKeyF4
  13.          KeyCode = 0        
  14.  
  15. Case Else
  16.  
  17. End Select
You can add as many more FKeys as you like in this manner. It's generally considered bad form to spike F1 (Help) but you can if you like. When moving to another form everything will be restored.

You can use this same technique to cancel the function of most keys as well as to change the function of keys, but always keep in mind the native purpose of the keys! Even if you don't use the normal functions of the keys, your users might!

Welcome to TheScripts!

Linq ;0)>
Dec 18 '07 #5
missinglinq
3,532 Expert 2GB
Glad we could help, Mackabee!

Linq ;0)>
Dec 18 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: Protoman | last post by:
How would I make an autokey viginere cipher?
20
by: John | last post by:
Hi, I've recently upgraded from Access 97 to Access 2002 & the performance basically stinks. I have tried the following items listed below but it has only had a minor impact: 1) Upgraded Jet...
2
by: Todd D. Levy | last post by:
I recently picked up a copy of Office 2003, but have installed it (replacing my existing installation of Office XP Pro) yet because... I am in the middle of a client project using Access 2002...
0
by: Miguelito Bain | last post by:
hi everybody- i've got a conundrum... i inherited some old databases, and i'm trying to convert them. i run office xp with access 2002, and all of the databases i manage are either in 97...
3
by: Chris | last post by:
Don't know if there is a simple solution for this one or not. When running SQL server on a machine with 2000 loaded and the complete SQL package I don't have any issues. Now I'm trying to login...
0
by: psi | last post by:
I am a newbie at Programming and this is my first go. I want to know how to do autokey encryption in Java. I am total newbie so don`t know more than input output and some commands. Hope...
62
by: Tony Ciconte | last post by:
I have a rather complex commercial Acc2003 application (tab controls, 50K+ lines of VBA code, etc.) that will not run well at all on Windows Vista Ultimate. I have seen posts indicating that...
6
by: hughneedsvb | last post by:
I would like to perform an action within MS Access 2003 Win XP by using an AutoKey such as {CTRL} + K. there is a simple instruction in Access Help telling you how to create a new Macro. It tells...
1
by: kihsore | last post by:
Hi All, I have a question on compatibility and conversion issues with Access 2007. My question is will a Runtime created on an early versions of Access 2007 (ie;Access 97,2000,2002,2003) run on...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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...
0
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...

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.