Results 1 to 3 of 3
  1. #1
    Kananelo is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2011
    Posts
    7

    Question how do i join records from two tables via a form

    Folks, i need help with a working code that would perhaps go into the after_update of my form.

    I have a form that is based on one table "tblReferral" then the rest of the fields are combo boxes that look up data in two unrelated tables.

    What i need to do is:

    Pupulate these combo boxes with data from these unrelated tables save them as a new record.



    E.g tblPatients has patients, tblGuardians has guardians of the patients, i would then select the name of the patient and the guardian and click save. Patient records now indicate "Michelle Blake" as the patient's guardian.

  2. #2
    jgelpi16 is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Mar 2010
    Location
    Charlotte, NC
    Posts
    544
    Let's start with a dlookup() method. Would that work? have the dlookup() result dumped into the corresponding tables which are bound to your fields. Is that on the right path for what you are looking for?

  3. #3
    Kananelo is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2011
    Posts
    7
    let me try and use that... i'l keep you posted in case i need clarity.

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

Similar Threads

  1. Replies: 10
    Last Post: 12-13-2010, 11:49 PM
  2. Replies: 2
    Last Post: 11-05-2010, 04:47 AM
  3. Replies: 2
    Last Post: 09-01-2010, 09:51 PM
  4. Join three or more tables in many to many link
    By elicoten in forum Database Design
    Replies: 3
    Last Post: 02-04-2010, 06:51 PM
  5. Replies: 3
    Last Post: 08-06-2009, 11:49 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