Results 1 to 2 of 2
  1. #1
    jacobbiljo is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    6

    Part Number Lookup

    Hopefully this hasnt been answered too many times already but I am setting up a simple Part Number database and would like to be able to search by sections of our part number. Our parts numbers are divided up in a form something like this:x-xx-xxx with each section signifying a different group but all being stored as one masked text variable. What is the simplest way to be able to query parts of this number so for example i look for only parts from the electrical connectors group 1-15-_ _ _

    Thanks for any help or redirection to previous topics
    Jacob



    On a side note i would have though this was a common task is there not any examples out there of this type of system?

  2. #2
    CGM3 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Atlanta, GA
    Posts
    49
    Create a query on the Part Number table, and along with the fields you want to display put this in an empty field of the query--

    =Left([PartNumber], 4)

    --which, after you press Enter, will be changed to--

    Expr1: Left([PartNumber], 4)

    Then, in the Criteria field of that column, enter--

    =[Group]

    When you execute the query, it will prompt you for a value for [Group] -- in your example, enter 1-15 -- then return all records where the first four characters equal whatever was entered (here, 1-15).

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

Similar Threads

  1. Search any field and part thereof
    By Johan in forum Programming
    Replies: 0
    Last Post: 09-08-2008, 02:18 AM
  2. Search any field and part thereof
    By Johan in forum Forms
    Replies: 0
    Last Post: 09-03-2008, 08:01 AM
  3. Replies: 0
    Last Post: 03-05-2007, 08:04 PM
  4. Multiple Part Number Look=up
    By nywi6100 in forum Reports
    Replies: 0
    Last Post: 09-27-2006, 11:38 AM
  5. how do I create custom part numbers?
    By Sinatra Fan in forum Database Design
    Replies: 1
    Last Post: 09-01-2006, 04:09 PM

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