Results 1 to 2 of 2
  1. #1
    suverman is offline Novice
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    15

    Retrieve data from more than one table, on a single form on entering a field.

    Table A


    CHE_NO AMOUNT
    456789 854
    569859 6585
    ...


    Table B
    Bank Che_NO SUPPLY AMOUNT
    XXXX 569859 WATER 6586
    XCCX 456789 JAMES 854




    1. Is there a way I can design a form where if I enter a che_no, it retrieves from both the table all the fields?

    2. As one can see that amount for che_no 569859 is different. Is there a way a field can be created in DB which records the difference IF ANY.

    THANK YOU!!!

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Create a query joining the two tables on the check no. Create an expression field to calculate any differences. Use the query as your record source for your form to display the information. A bigger question is why do you have two tables containing the same information? This goes against the normalization rules. Based upon what I see here, all this information could be in one table. Are there other factors or fields involved?

    Alan

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

Similar Threads

  1. How to retrieve field names in a table
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 12-05-2010, 09:09 PM
  2. Replies: 0
    Last Post: 03-15-2010, 02:38 AM
  3. Replies: 2
    Last Post: 02-13-2010, 01:54 PM
  4. Entering duplicate data in Form
    By cotri in forum Forms
    Replies: 1
    Last Post: 01-06-2010, 11:45 PM
  5. Question about entering data through form
    By vixtran in forum Database Design
    Replies: 6
    Last Post: 06-16-2009, 07:23 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