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:
- intercept ctrl+f hotkey
- 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
Post a Comment