Results 1 to 3 of 3
  1. #1
    TokyoAutomotive is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2010
    Posts
    2

    Help with database

    As the title says, I need help with a database. I was recently brought on at a local automotive center to create an inventory of their warehouse, and design a database and management system that the employees could easily use.

    Goals of the system:

    Able to search by year, make, model, and engine model and display parts. This is the easy part and not the reason for my post. (well as of yet, I'm still in the process of setting up the DB and not implementing the query search yet.

    Database is as follows:
    [Part Number][Make][Year][Model][Engine][Parts Category][Description]
    42611-10320|Toyota|1994|tercel|3E-E|BRAKES|Front disk brake rotor

    Now it comes down to the model number in the post. It can be decoded and broken up. The first number for example:

    The first half tells you what the part is. Within it, the first digit in the part number is general classifications -

    0 - Special tools, service materials
    1 - engine mechanical, air filters as well
    3 - drivetrain, clutch etc.
    4 - brakes
    5 - interior trims
    7 - interior trims, seat belt, restraint systems
    8 - electrical stuff, switches, sensors, ECUs, etc.
    9 - bolts, nuts, regular maintenance stuff



    Therefore the part number from above, 42611-10320, the first number is 4, therefore it is brakes. I need the "Parts Category" field to reflect that first number.

    So lets say if the first digit of a model is 7, the category field needs to read "Interior", and if its 1 it needs to read "Engine"

    Could a if/or formula be used to read the first number of cell A1 (for example) and make F1 read the correct category?

    I know this isn't a correct formula, but the idea is

    If [first number of cell "Part Number"] = 1 then cell F = Engine
    If [first number of cell "Part Number"] = 3 then cell F = Drivetrain

    etc... Can this be done?

  2. #2
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Yes.... BUT.............

    Quote Originally Posted by TokyoAutomotive View Post

    Could a if/or formula be used to read the first number of cell A1 (for example) and make F1 read the correct category?

    I know this isn't a correct formula, but the idea is

    If [first number of cell "Part Number"] = 1 then cell F = Engine
    If [first number of cell "Part Number"] = 3 then cell F = Drivetrain

    etc... Can this be done?
    You are committing "Spreadsheet". Access does not have "A1" or "F1". Forget everything you know about Excel!! Excel is not Access.


    Start out by memorizing "The Ten Commandments of Access"

    (there will be a test ) SEE: http://mvps.org/access/tencommandments.htm


    Then read the online tutorial by Crystal

    http://www.accessmvp.com/Strive4Peace/


    The next step is to use pencil and paper to design your table structure. (I use a dry eraser white board).

  3. #3
    TokyoAutomotive is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2010
    Posts
    2
    Yes sorry, I come from excel as you can tell... It was the easiest way to relay what was in my mind to ePaper. TY for the links i will review those

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

Similar Threads

  1. Database Design for Specification Database
    By khwaja in forum Database Design
    Replies: 2
    Last Post: 11-24-2011, 03:58 AM
  2. Replies: 1
    Last Post: 11-03-2010, 10:41 AM
  3. Replies: 4
    Last Post: 08-12-2010, 08:38 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