Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2002
    Posts
    17

    Unanswered: key stroke on message box

    Hi,

    I have a standard Msgbox (OK button only).
    I want one code activated when the button is hit normally and some other code when the button is hit holding down CTRL key.

    I have no idea how to make this (
    Ali G is da best

  2. #2
    Join Date
    Jul 2002
    Location
    Australia
    Posts
    147
    I doubt you can do this with a MessageBox.

    Is probably possible if you create your own popup/modal form which *acts* like a message box.

    Cheers,
    Andrew
    There have been many posts made throughout the world.
    This was one of them.

  3. #3
    Join Date
    Apr 2002
    Posts
    17
    But what are the VBA procedures to evaluate the key stroke in case I decide to employ a form instead of a message box?
    Ali G is da best

  4. #4
    Join Date
    Jul 2002
    Location
    Australia
    Posts
    147
    on_change or on_keypress I think. There will be info on them in Access Help.

    Good luck,
    Andrew
    There have been many posts made throughout the world.
    This was one of them.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •