Results 1 to 3 of 3
  1. #1
    Gregory23 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2015
    Posts
    28

    Search multiple fields

    Dear all,

    Would like to know how to create search in VBA that will look for value in multiple fields

    Currently using the below but it is only one field

    Code:
    DoCmd.OpenForm "Export", acNormal, , "[DELIVERY NO 1:]=" & InputBox("Enter Delivery no")
    Thanks



    G

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Normally, you don't search multiple fields.
    if you are looking for a persons name, you look in the NAME field. Not other fields.
    if you have name in several columns, your table is designed wrong.
    that is why there is no function to do this.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

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

Similar Threads

  1. Replies: 6
    Last Post: 02-26-2014, 05:06 PM
  2. Smart Search multiple fields?
    By Deisun in forum Programming
    Replies: 2
    Last Post: 08-15-2011, 12:31 PM
  3. Search across multiple fields
    By Nexus13 in forum Programming
    Replies: 2
    Last Post: 07-08-2011, 02:38 PM
  4. combo box to search multiple fields
    By jo15765 in forum Forms
    Replies: 21
    Last Post: 12-23-2010, 03:28 PM
  5. Replies: 4
    Last Post: 09-22-2010, 01:47 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