How to make Access select the entire text in a box instead of all records when using ctrl+a?

Jake

In Access, is there a way to set what is selected when a user hits ctrl+a? I have a text box for users to input data, but if they hit ctrl+a, it selects all of the records instead of the entire text of a field. Is there a way to get around this? I am worried about someone accidentally deleting a bunch of records instead of the text of a field.

I'm a beginner user, so please forgive me if I am asking a silly question. I tried to search the forum, but haven't found a good answer.

Fionnuala

Working with a textbox and the Keydown event, you can say:

Private Sub Content_KeyDown(KeyCode As Integer, Shift As Integer)
   ' Debug.Print KeyCode, Shift
    If KeyCode = vbKeyA And Shift = acCtrlMask Then
        MsgBox "Please use F2"
        KeyCode = 0
        Shift = 0
    End If
End Sub

The textbox is called Content in this case.

You may like to get more complicated and look into KeyPreview.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to select and remove entire text from text box input?

From Dev

How to import bulk pictures in Power Point from folder using Open Dialogue Box to Select Entire Folder and Make New Slide for each Picture

From Dev

How do I select all check box when I click on Select button using jQuery

From Dev

How to select all records?

From Dev

How to select all ms access table records based on date

From Dev

How to SELECT records using MIN and MAX when multiple records exist?

From Dev

Count Query records to a text box in MS Access

From Dev

jQuery How to make text fit entire screen width using for loop?

From Dev

How to get the text box instead of dropdown select box if get null value from json

From Dev

How to get the text box instead of dropdown select box if get null value from json

From Dev

How to Select All Text in TextBox After textBox.Setfocus Using Access VBA

From Dev

select all text in a textarea with CTRL+A

From Dev

How to select a select box element using java script when select box using foreach in php

From Dev

How make Select box smaller when option is too long

From Dev

jquery - How to make change function in the select box when the select box is in the loop

From Dev

How to make text box border red when validation fail

From Dev

How to set a SELECT control using text instead of value using jquery?

From Dev

How to make a text box wider using Rails best_in_place?

From Dev

How to get all the items of a select box in a textbox using JavaScript

From Dev

How to get all the items of a select box in a textbox using JavaScript

From Dev

how to make select box dynamic

From Java

How to select variables for plotting using text box input?

From Dev

How to truncate text in select box using CSS only

From Dev

How to make a disabled select box look like a normal text box(css only)

From Dev

MS Access : Add Select All to combo box

From Dev

How to make input text as a box

From Dev

AS3, How to make a loop instead of using all these IF-statement

From Dev

Make all text box in WPF disabled

From Dev

How to select 6 top records of each individual records at the database when selecting from all rows

Related Related

  1. 1

    How to select and remove entire text from text box input?

  2. 2

    How to import bulk pictures in Power Point from folder using Open Dialogue Box to Select Entire Folder and Make New Slide for each Picture

  3. 3

    How do I select all check box when I click on Select button using jQuery

  4. 4

    How to select all records?

  5. 5

    How to select all ms access table records based on date

  6. 6

    How to SELECT records using MIN and MAX when multiple records exist?

  7. 7

    Count Query records to a text box in MS Access

  8. 8

    jQuery How to make text fit entire screen width using for loop?

  9. 9

    How to get the text box instead of dropdown select box if get null value from json

  10. 10

    How to get the text box instead of dropdown select box if get null value from json

  11. 11

    How to Select All Text in TextBox After textBox.Setfocus Using Access VBA

  12. 12

    select all text in a textarea with CTRL+A

  13. 13

    How to select a select box element using java script when select box using foreach in php

  14. 14

    How make Select box smaller when option is too long

  15. 15

    jquery - How to make change function in the select box when the select box is in the loop

  16. 16

    How to make text box border red when validation fail

  17. 17

    How to set a SELECT control using text instead of value using jquery?

  18. 18

    How to make a text box wider using Rails best_in_place?

  19. 19

    How to get all the items of a select box in a textbox using JavaScript

  20. 20

    How to get all the items of a select box in a textbox using JavaScript

  21. 21

    how to make select box dynamic

  22. 22

    How to select variables for plotting using text box input?

  23. 23

    How to truncate text in select box using CSS only

  24. 24

    How to make a disabled select box look like a normal text box(css only)

  25. 25

    MS Access : Add Select All to combo box

  26. 26

    How to make input text as a box

  27. 27

    AS3, How to make a loop instead of using all these IF-statement

  28. 28

    Make all text box in WPF disabled

  29. 29

    How to select 6 top records of each individual records at the database when selecting from all rows

HotTag

Archive