Results 1 to 4 of 4
  1. #1
    Eric1066 is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2009
    Posts
    14

    Need help pleeeeease with form

    Hi guys,

    I have two tables A & b

    TABLE A
    ClientID (primary Key)
    Firstname
    Surname



    TABLE B
    CallID (primary key)
    ClientID (related to ClientID in Table A)
    DateofCall
    CallDetails

    I have a form for Table A which is only the fields in Table A

    I would like a form for Table B to enter the details for it...

    BUT, I would like once the client ID has been keyed for the form to display
    the firstname and surname of the client that the clientID refers to in Table A
    to ensure that the details entered are for the right client.

    Greatly appreciated!!

  2. #2
    CGM3 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Atlanta, GA
    Posts
    49
    Try using this query for the form's Record Source:

    Code:
    SELECT B.CallID, B.ClientID, B.DateofCall, B.CallDetails, A.FirstName, A.Surname FROM B LEFT JOIN A
    ON B.ClientID = A.ClientID
    The LEFT JOIN means it will include all of the records from Table B, even if no ClientID has been entered.

  3. #3
    Eric1066 is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2009
    Posts
    14
    Thanks for the response, but I have no Idea what this means where do I put 'left join'

    Thanks for your help
    Eric

  4. #4
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    well - what you really want to do is to have the two forms together...make one of the forms to be the subform of the other form - - the wizard will step you thru it...then you will always be sure you are in the correct record....

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

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