ms access - How to Intercept built-in Find Procedure? -


in access project have custom find procedure.

now want eradicate built-in find procedure user doesn't try use that.

so have 2 tasks acccomplish:

  1. intercept ctrl+f hotkey
  2. remove find button ribbon.

on main form have key preview enabled, , know how detect keypresses, i'm not sure how detect ctrl key.

now do?

you can check if shift = 2. shift value 1 if shift pressed, 2 if ctrl pressed, 4 if alt pressed, sum of values if 2 or 3 of buttons pressed or 0 if none of them pressed. if statement should this:

if keycode = vbkeyf , shift = 2     keycode = 0 end if 

Comments

Popular posts from this blog

php - Using str_replace to translate a MySQL Table in html -

asp.net mvc - Cannot display error message on Editor or EditorFor -

SQL Server - MyCTE query based on 24 hour period (next day) -