+ Reply to Thread
Results 1 to 3 of 3

Thread: Access query

  1. #1
    Registered User
    Join Date
    12-05-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    2

    Access query

    Hi i'm hoping i can get some help with my access assignment.

    first things first I have a table called jobsheet which is linked to a table called jobsheet/stock one to many JobCode being thr primary key the table jobsheet/stock is a link table between jobsheet and Stock to prevent a many to many relationship. The way it works is by the following.
    For every Job there is one or many stock and for every item of stock there may be used for one or many jobs.
    example i have a jobcode 10000000 has 2 items of stock nicknamed 1234 price £100 and 5678 at £50 what i'm wating to do is design a query that lets me add those 2 stock values used in the jobsheet it's linked to is this possible without going into SQL coding as i'm a newbie.
    I am gratful for any help i am given

  2. #2
    Valued Forum Contributor alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Lake County, Illinois
    MS-Off Ver
    MS Office 2010, 2007 and 2002
    Posts
    1,161

    Re: Access query

    Graeme;
    If you would post a copy of your database absent of any confidential data. If necessary, post it with dummy data. In your response, scroll down to "Manage Attachments," and follow the instructions. Before you attempt to attach your database, be sure to zip it as this forum does not accept .mdb or .accmdb files. I am sure we can get you set up with the correct query.

    Alan

  3. #3
    Registered User
    Join Date
    12-18-2010
    Location
    UK
    MS-Off Ver
    2003, 2007, 2010
    Posts
    79

    Re: Access query

    Hello

    I think you may need a third table to manage the potential many-to-many realtionship between table Job and table Stock. Call this third table JobStock, say, and for it create two fields JobCode and StockCode. Make JobCode and StockCode joint key fields for the new table.

    Then link one-to-many Job.JobCode <> JobStock.JobCode and link one-to-many Stock.StockCode <> JobStock.StockCode.

    Then you have the basis for assigning many stock items to a job, and a stock item to many jobs.
    David
    Access and Excel Developer | UK

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0