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.
5 2088
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?
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?
Goto Properties - Events for your form and set Key Preview to Yes, the in the code module behind your login form: - Private Sub form_keydown(KeyCode As Integer, Shift As Integer)
-
Dim NewRecHit As Long
-
-
Select Case KeyCode
-
-
Case vbKeyF2
-
KeyCode = 0
-
-
Case vbKeyF3
-
KeyCode = 0
-
-
Case vbKeyF4
-
KeyCode = 0
-
-
Case Else
-
-
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)>
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: - Private Sub form_keydown(KeyCode As Integer, Shift As Integer)
-
Dim NewRecHit As Long
-
-
Select Case KeyCode
-
-
Case vbKeyF2
-
KeyCode = 0
-
-
Case vbKeyF3
-
KeyCode = 0
-
-
Case vbKeyF4
-
KeyCode = 0
-
-
Case Else
-
-
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)>
Glad we could help, Mackabee!
Linq ;0)> Sign in to post your reply or Sign up for a free account.
Similar topics
by: Protoman |
last post by:
How would I make an autokey viginere cipher?
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
|
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...
|
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...
|
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...
|
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...
| |