Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2003
    Posts
    81

    Thumbs down Unanswered: Hot Key Procedure

    I WOULD LIKE TO ENABLE CAPITAL CHR WHEN I ENTER IN A TXTBX. ANYONE KNOW HOW?
    HOW CAN I CREATE HOT KEYS PROCEDURES TO ENABLE-DISABLE ALLOWBYPASSKEY PROPERTY?

    THANK YOU!!!

  2. #2
    Join Date
    Aug 2003
    Location
    Bosnia & Hercegovina
    Posts
    57
    you could use UCase() function OnAfterUpdate event to get all capital letters.....

    just keep checking for keys pressed right from autoexec function.....

  3. #3
    Join Date
    Jul 2003
    Posts
    81
    I know how to use the ucase() but my point is to begin writing with caps and not afterupdate to change lowercase to uppercase. If you have something in your mind tell me.

    Thanks.

  4. #4
    Join Date
    Aug 2003
    Location
    Delft, The Netherlands (EU)
    Posts
    447
    Originally posted by M@sterm!nd
    I know how to use the ucase() but my point is to begin writing with caps and not afterupdate to change lowercase to uppercase. If you have something in your mind tell me.

    Thanks.
    The solution from Strucnjak should work:

    Fire on every change the event, that changes the context of your field using the UCase() function, which seems to let the user inputting in captial letters. However, be aware not to implement a loop. So, your event body should look like:

    IF UCase(TextBox.Text) <> TextBox.Text THEN Let TextBox.Text = UCase(TextBox.Text)
    Make everything as simple as possible, but not simpler! - A. Einstein
    DB Problems? DB Explorer, BTrieve Re-engineering, DB Conversions & ETL? Conversion Tool

  5. #5
    Join Date
    Dec 2003
    Posts
    20

    Hot Key Procedure

    Can Someone Tell Me The Code For Hot Keys In Access. I Would Like To Add A Command Button On A Form To Perform A Spell Check. Thanks

  6. #6
    Join Date
    Aug 2003
    Location
    Delft, The Netherlands (EU)
    Posts
    447
    do you mean a Hot Key, or a command button?

    You create the Hot Key effect by using your form's KeyPress event.
    Make everything as simple as possible, but not simpler! - A. Einstein
    DB Problems? DB Explorer, BTrieve Re-engineering, DB Conversions & ETL? Conversion Tool

Posting Permissions

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