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

    Search Form Access

    I've created a search from in access using queries and its working fine, however I have a field that says product name - Minimum Order Quantity, would there be any way for me to edit the query so that when the user entered Shirt - 500 it would show up all the minimum order quantities less than 500?

    Any help would be great, new to this so forgive me if a post has already been created any links would be helpful.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Are you saying the value of that field is "Shirt - 500"? That looks like two types of data in the same field. Data should not be saved like that.

    Since that is a text field, you can use LIKE operator with wildcard. Is that what you are using in the other fields?

    I don't use dynamic parameterized queries. I use VBA that builds filter string and applies to form or report. Review: http://www.allenbrowne.com/ser-62code.html
    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.

  3. #3
    ryanmce92 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    48
    Yes that's what it is, I'd prefer not to use VBA as I'm not familiar with it yet as I'm only new to access.
    Would it be more appropriate to use two separate fields say one with product then one with MOQ? Could I then have it so that when using the search form that all the fields with less than that MOQ appear?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I already stated different types of data should not be stored together in same field. However, I gave you a suggestion that dealt with that circumstance.

    It's now up to you to decide which path to follow.
    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. Simple Access Search Form!
    By Z1nkstar in forum Access
    Replies: 4
    Last Post: 05-05-2014, 10:54 AM
  2. Replies: 16
    Last Post: 05-04-2014, 09:19 AM
  3. Using a search box within an Access form
    By bellczar in forum Programming
    Replies: 2
    Last Post: 02-16-2013, 02:06 AM
  4. Creating a search form in access
    By fawadmz in forum Access
    Replies: 2
    Last Post: 10-15-2012, 12:48 AM
  5. Replies: 5
    Last Post: 07-13-2012, 01:15 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