Results 1 to 5 of 5
  1. #1
    Chky071 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2015
    Posts
    25

    Table of calculated fields

    Have a couple of databases that house all the information that I need. I am looking to create a table or query where I can house a bunch of calculated fields.



    For example:
    My master database contains the following fields
    Part Number
    Heater #1
    Heater #2

    I have another database that contains information about the heaters
    Heater Part number (Corresponds to Heater #1 and/or Heater #2)
    Length

    I want to create a table or query where for each part number it shows me the total length of all heaters. I am running into trouble because sometimes a part will not have a second heater.

    I created a query and I created a relationship between heater#1 and heater Part number, the query works fine. When I create a relationship between Heater #2 and heater part number (I link it to a second instance of the same heater database, because otherwise it can't tell which "Length" I am talking about) I can only then see the main part numbers that have a heater in the "Heater #2" field. I have tried "is null" and they still do not show up.

    What is the best way to handle something like this? I am assuming a query is the way to go, but I just can't seem to get it to show me everything whether null or not

    Thanks

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,600
    Are you using INNER JOINs?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Chky071 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2015
    Posts
    25
    What are INNER JOINs? I am new to Access.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,600
    In the query designer, double click on the line that links tables to open Join Properties dialog. You will see 3 options for join type. Need the one that says something like: Include ALL records from 'master table' and only those from 'heaters' ...

    Switch query builder to SQL View to see the actual SQL statement.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    Chky071 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2015
    Posts
    25
    Thanks, that was exactly what I was looking for!

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

Similar Threads

  1. Add a calculated fields in a Table
    By Eef in forum Database Design
    Replies: 2
    Last Post: 12-08-2014, 07:24 AM
  2. Replies: 12
    Last Post: 10-01-2013, 12:59 PM
  3. Replies: 1
    Last Post: 02-20-2013, 09:23 AM
  4. Replies: 5
    Last Post: 02-08-2013, 11:28 AM
  5. calculated fields appearing in table
    By jamhome in forum Access
    Replies: 16
    Last Post: 07-19-2011, 02:57 PM

Tags for this Thread

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