Results 1 to 5 of 5
  1. #1
    Heatshiver is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2011
    Posts
    128

    Question How to Tackle Numerous Fields for Calculations?

    I am creating a database from an Excel Workbook. Many of the calculated cells are dependent on the values of other calculated cells.

    There are more than 255 cells for the one sheet so I can't use one table.



    I was forced to use multiple tables and place the calculation fields in their own tables for the use of their fields in a calculating query, although they won't be seen on any form or report.

    What is the best way to relate these tables even though they should really be all part of one table? Should I just use a Cross Join? Will a cross join allow me to properly calculate with a field from an unrelated table? What about an Outer Join?

    I need to reinforce integrity so that if one set of table data is deleted, so are all the others.

    I have already tried to place a "Report Number" autonumber field on each table, but it doesn't seem to allow me to reinforce the integrity and gives me, "invalid field name of definition of index or relationship".

    Please help! Thank you.

  2. #2
    Heatshiver is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2011
    Posts
    128
    I realized I had all my other primary keys (Report Number fields) set to autonumber, which would not allow the relationship. But after changing them to Number they would allow the relationship with reinforcement of integrity.

    Is this the way I should do it?

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    It sounds like you are on the right track now.

  4. #4
    Heatshiver is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2011
    Posts
    128
    I realize that without the Excel file I am using it is hard to describe the exact issue (I can upload if wanted). The relationships now work, but it looks like the easiest way to work this is to create calculated fields in a query and go about it that way.

    It's just an uphill battle as one cell that is calculated will use many other cells, some of which are also calculated (and those are often based off of other calculated cells!). A nightmare to say the least!

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Very common issues when moving from Excel to Access.

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

Similar Threads

  1. Replies: 9
    Last Post: 10-29-2011, 12:47 PM
  2. Building a String from Numerous Subforms
    By StudentTeacher in forum Programming
    Replies: 9
    Last Post: 07-17-2011, 07:16 AM
  3. Replies: 1
    Last Post: 05-30-2011, 06:03 PM
  4. Replies: 4
    Last Post: 03-27-2011, 01:24 AM
  5. GROUP numerous lines to one record
    By tweetyksc in forum Queries
    Replies: 3
    Last Post: 07-21-2010, 01:14 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