Results 1 to 4 of 4
  1. #1
    princess12 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    79

    Listbox and textbox verification

    Hello everyone,



    i just cant figure out how to check if textbox value > than listbox selected value

    this is what i have so far

    If Me.txtbox1>(greater than) Me.listbox1.ItemsSelected Then


    thanks

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    If it's not multiselect try


    If Me.txtbox1>Me.listbox1 Then
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    princess12 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    79
    perfect, thank you, it works! thanks a lot

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    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. Using a Listbox to populate a Textbox.
    By IncidentalProgrammer in forum Forms
    Replies: 7
    Last Post: 10-29-2014, 12:32 PM
  2. Replies: 2
    Last Post: 03-23-2014, 06:50 AM
  3. Replies: 15
    Last Post: 10-01-2013, 09:31 PM
  4. import all data from listbox to a textbox
    By mikael in forum Access
    Replies: 8
    Last Post: 09-09-2012, 07:16 PM
  5. Unable to populate textbox based on listbox
    By marcustofeles in forum Forms
    Replies: 21
    Last Post: 10-24-2011, 07:18 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