Results 1 to 2 of 2
  1. #1
    Nokia N93 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    55

    How to calculate results from two tables ?

    Hello



    i need your help in this one, i have a small school with number of teachers, every teacher has a specific number of observations in the semester, i need a small project that when i query a bout a teacher, a form appearing with his name and the remaining hours of observation

    what i did is i made two tables
    teacher (id, name, total number of observations in semester)
    observation( Oid, name of teacher, date and time of observation, remaining observations)
    -- i dont know if i have to make a counter or what !!--

    Now what i need to do is a form
    when i enter the id of the teacher, it shows automatically the name of the teacher, and the number of remaining observations

    How can i join the two tables and show the results ?


    a sample Db TEACHER.zip

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Use form/subform arrangement.

    Main form bound to Teacher.
    Subform bound to Observation.

    Filter the main form.

    Or build a report that has a RecordSource that joins the two tables.

    BTW, Observation should not have teacher name, it should have teacher ID, as foreign key.

    This is basic Access functionality and Access Help has guidance.
    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. Look Up Tables and Filter Results
    By starkeymd in forum Access
    Replies: 1
    Last Post: 01-12-2012, 04:17 PM
  2. Combining results from unrelated tables
    By jwreding in forum Queries
    Replies: 7
    Last Post: 08-12-2011, 01:19 PM
  3. Replies: 12
    Last Post: 12-17-2010, 05:35 PM
  4. calculate value from two tables
    By victor in forum Programming
    Replies: 3
    Last Post: 08-20-2010, 12:13 PM
  5. Replies: 0
    Last Post: 02-26-2009, 04: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