Results 1 to 4 of 4
  1. #1
    lpkorn423 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2012
    Posts
    12

    Query design hangup

    Quick overview of the table designs

    TblJobs
    -JobID
    -fkCustomerID
    -PO
    -JobDate

    TblJobLines


    -JobLineID
    -fkJobID
    -PartID
    -Qty
    -PriceEach
    -LineDescription

    TblInvoice:
    -InvoiceNumber
    -InvoiceDate
    -InvoiceTotal

    TblInvoiceLines:
    -InvoiceLineID
    -fkJobLineID
    -fkInvoiceNumber

    TblCustomers:
    -CustomerID
    -Billing address etc...

    TblParts:
    -PartID
    -PartDescription

    I need a query that populates all JobLineID along with related data. This wouldn't be difficult except that not all JobLineID's are linked to an InvoiceLineID (and in turn an InvoiceNumber). Is there a way I can have a query populate ALL JobLineID's and it just leave the InvoiceLineID column (and InvoiceLineID specific data) blank if there is not a related record? I am attaching a PDF of my relationships if that helps.

    The purpose of this query/report will be to keep track of what has been invoiced, what needs to be invoiced, and whether payment has been recieved or not.
    Attached Files Attached Files

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    Try editing the join between the tables in design view. You can right click or double click on the join line to edit, and the descriptions should be pretty helpful.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    lpkorn423 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2012
    Posts
    12
    Well that points me in the right direction thanks!

  4. #4
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Query Design
    By Daryl2106 in forum Access
    Replies: 7
    Last Post: 12-05-2012, 09:55 AM
  2. Table Design -- want to avoid a design that creates blank fields
    By snowboarder234 in forum Database Design
    Replies: 4
    Last Post: 10-08-2012, 10:13 AM
  3. Dcount on Query design
    By thanosgr in forum Queries
    Replies: 8
    Last Post: 04-29-2012, 08:29 AM
  4. Query design help
    By claudia_lovez_u in forum Access
    Replies: 9
    Last Post: 04-19-2012, 07:33 PM
  5. Using a Design View Query in ADO?
    By danny2000 in forum Access
    Replies: 4
    Last Post: 12-06-2010, 03:36 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