Results 1 to 6 of 6
  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 offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    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 offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    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 2007-2019
    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
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,954
    Use a Password input mask. It will display as ****
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    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 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 3
    Last Post: 10-30-2018, 09:41 AM
  2. Replies: 2
    Last Post: 02-23-2016, 04:36 PM
  3. Replies: 2
    Last Post: 03-19-2013, 09:36 PM
  4. Append Query and Increment Number
    By burrina in forum Queries
    Replies: 1
    Last Post: 02-02-2013, 12:28 AM
  5. Append to TextBox Not OverWrite
    By runthis457 in forum Programming
    Replies: 9
    Last Post: 03-07-2012, 11: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
  •  
Other Forums: Microsoft Office Forums