Results 1 to 5 of 5
  1. #1
    LeadTechIG is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2014
    Posts
    23

    Input Mask Options for Computer Processor Speed

    All,



    I am wondering if there is a way for me set an input mask to allow me enter a computer processor speed after I test the machine by only typing in the numerals, and having access add the "GHz" suffix. Is that an option, and how would I go about doing that?

    Thank you.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    One approach could be to have a number field in the table named ProcSpeedInGHz. All you would need is your numerals.

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,649
    As orange noted, probably should just store number value and append the GHz suffix by expression in query or textbox. Or if something other than GHz is possible, save the unit into another field.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    In the AfterUpdate Event of the field in which you are entering put the code: (am calling it YourFieldName)

    Dim Entry as Variant
    Entry = Me.YourFieldName
    Me.YourFieldName = Entry & " Ghz"

    the field type must be text of course....and you replace the YourFieldName with the real name....

    the just grabs the value that you entered and holds it momentarily as a temporary variable named 'Entry'...and then appends your Ghz to it and sticks the new string back into the same field.....

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,649
    An input mask can accomplish this and without VBA, like: ###"GHZ";0;_

    But if you do use VBA, the variable is not needed.

    Me.YourFieldName = Me.YourFieldName & "GHz"
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Input Mask
    By kdbailey in forum Access
    Replies: 4
    Last Post: 12-19-2014, 08:11 AM
  2. Input mask
    By scorpion99 in forum Access
    Replies: 4
    Last Post: 02-21-2014, 02:18 AM
  3. Replies: 12
    Last Post: 04-25-2013, 03:31 PM
  4. Input Mask
    By qbc in forum Access
    Replies: 2
    Last Post: 01-20-2012, 03:27 PM
  5. Input mask
    By doobybug in forum Access
    Replies: 2
    Last Post: 06-17-2009, 09:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums