Results 1 to 6 of 6

Query a textbox and append a number to it

  1. #1
    shabbaranks is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Oct 2011
    Posts
    162

    Query a textbox and append a number to it

    Hi,

    I used to be ok with Access but haven't touched it for a while and was wondering if anyone could help me please? I'm looking to created a pin entry system on a form - but am stuck on the first hurdle

    I would like the user to be able to press a button 0 - 9 and that value to be appended to a textbox and then eventually validate against a table entry to "login".

    Whats the best way to query a textbox and append the pressed number to the text box? Currently all I can do is press a button to clear the text box



    Thanks

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    7,032
    Why can't the user enter the # into the textbox?
    the textbox adds a new record?

    queries add data to tables,not textboxes.

  3. #3
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    19,096
    I'm guessing you're creating an on-screen keypad? The code would look like:

    Me.TextboxName = Me.TextboxName & 1

    using a different number for each button.
    Paul (wino moderator)
    MS Access MVP
    www.BaldyWeb.com

  4. #4
    shabbaranks is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Oct 2011
    Posts
    162
    Quote Originally Posted by pbaldy View Post
    I'm guessing you're creating an on-screen keypad? The code would look like:

    Me.TextboxName = Me.TextboxName & 1

    using a different number for each button.
    Exactly what Im doing and it works a treat thank you, is there a way to mask a text box so it doesn't show the numbers in it?

  5. #5
    ridders52's Avatar
    ridders52 is offline Voodoo Is Practised
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    2,708
    Use a Password input mask. It will display as ****
    Colin (Mendip Data Systems), Website, email
    If this has helped, please click the star button and leave a comment

  6. #6
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    19,096
    Quote Originally Posted by shabbaranks View Post
    Exactly what Im doing and it works a treat thank you
    Happy to help!
    Paul (wino moderator)
    MS Access MVP
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 3
    Last Post: 10-30-2018, 08:41 AM
  2. Replies: 2
    Last Post: 02-23-2016, 03:36 PM
  3. Replies: 2
    Last Post: 03-19-2013, 08:36 PM
  4. Append Query and Increment Number
    By burrina in forum Queries
    Replies: 1
    Last Post: 02-01-2013, 11:28 PM
  5. Append to TextBox Not OverWrite
    By runthis457 in forum Programming
    Replies: 9
    Last Post: 03-07-2012, 10:49 AM

Posting Permissions

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