Results 1 to 4 of 4
  1. #1
    k31453 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2012
    Posts
    6

    Calculate field using different field from different table

    So i have got this table

    Table 1:-- List of available classes

    Design view

    Class -- Primary key ---text

    Subject ----text

    Num. Lessons---- Number

    Enrolments ---- Number

    Max Class Size--- Number

    Action -- Calculated because if enrollment is higher then max. class size then its says full otherwise it will tell enrol




    Table 2:-- Teacher And Class Income



    Class --- text

    enrolment --- number

    max class size ---- number

    income per enrolment ----- currency

    incomer per class ----- currency ???



    1) BUT WHAT I WANNA DO IS IF I CHANGE ENROLLMENT and max class size VALUE IN TABLE 1 ... I WANT THAT CHANGE IN TABLE 2 ENROLLMENT and max. class size FIELD AS WELL

    For e.g. if i change enrollment =25 and max class size = 30 ,,, i want that change in table 2 .......so i want that table 2 should display Enrollment = 25, max class size = 30

    I want this things in TABLES not queries so can anybody tell me please what should i do... and i compulsory have to use access... NOT EXCEL

    2) then i want that Total Incomer per class (In Table 2) = Enrollment * Income per enrollment so that value should be display on total incomer per class ....

    So if i change enrollment value ... then the total income per class value has to change ....

    3) i want in table that my total income in all class should display in same table ( Table 2)

    I am attaching some files that might can help you.. and i need this done in this 3 days .. so please




    Click image for larger version. 

Name:	2012-05-28 14.45.53.jpg 
Views:	5 
Size:	110.4 KB 
ID:	7901

    Click image for larger version. 

Name:	2012-05-28 14.45.59.jpg 
Views:	5 
Size:	95.6 KB 
ID:	7902

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,628
    You are duplicating data. The enrollment and class size should only be in List table. The data can be retrieved by query join of tables. Otherwise, will need to run UPDATE sql action to modify data in other table.
    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
    k31453 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2012
    Posts
    6
    So How Do you do It ????/

    Quote Originally Posted by k31453 View Post
    So i have got this table

    Table 1:-- List of available classes

    Design view

    Class -- Primary key ---text

    Subject ----text

    Num. Lessons---- Number

    Enrolments ---- Number

    Max Class Size--- Number

    Action -- Calculated because if enrollment is higher then max. class size then its says full otherwise it will tell enrol




    Table 2:-- Teacher And Class Income

    Class --- text

    enrolment --- number

    max class size ---- number

    income per enrolment ----- currency

    incomer per class ----- currency ???



    1) BUT WHAT I WANNA DO IS IF I CHANGE ENROLLMENT and max class size VALUE IN TABLE 1 ... I WANT THAT CHANGE IN TABLE 2 ENROLLMENT and max. class size FIELD AS WELL

    For e.g. if i change enrollment =25 and max class size = 30 ,,, i want that change in table 2 .......so i want that table 2 should display Enrollment = 25, max class size = 30

    I want this things in TABLES not queries so can anybody tell me please what should i do... and i compulsory have to use access... NOT EXCEL

    2) then i want that Total Incomer per class (In Table 2) = Enrollment * Income per enrollment so that value should be display on total incomer per class ....

    So if i change enrollment value ... then the total income per class value has to change ....

    3) i want in table that my total income in all class should display in same table ( Table 2)

    I am attaching some files that might can help you.. and i need this done in this 3 days .. so please




    Click image for larger version. 

Name:	2012-05-28 14.45.53.jpg 
Views:	5 
Size:	110.4 KB 
ID:	7901

    Click image for larger version. 

Name:	2012-05-28 14.45.59.jpg 
Views:	5 
Size:	95.6 KB 
ID:	7902

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,628
    Do which? Table join or UPDATE action?

    I would not do the UPDATE. It is unnecessary duplication of data.
    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.

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

Similar Threads

  1. Replies: 7
    Last Post: 05-02-2013, 11:14 PM
  2. Calculate a field in a form
    By alscompany in forum Forms
    Replies: 4
    Last Post: 02-28-2012, 03:09 PM
  3. Expr. to calculate 'Age' from Date field
    By JohnB47 in forum Queries
    Replies: 18
    Last Post: 08-17-2011, 04:10 AM
  4. Replies: 5
    Last Post: 12-17-2010, 11:06 AM
  5. Calculate one field based on another one
    By Douglasrac in forum Forms
    Replies: 7
    Last Post: 11-18-2010, 01:30 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