Results 1 to 4 of 4
  1. #1
    brandonb is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2009
    Posts
    6

    Autopopulting fields in forms

    I need to autopopulate fields in a number of tables for ID theft. I have an active record and each record could have basically unlimited alias records but all aliases link back to the active record. For things like demographics, committee and legal references I'd like to autopopulate my MasterRecords table (active and alias numbers) into the other tables. How can I do that? Any advice would be appreciated.



    Right now I have nine tables, including the MasterRecord table which only contains active and alias records.

    Thank you!

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Master is a 1:M relationship to Aliases. It takes two tables - or maybe one with a self join. PrimaryKey (PK) is an Autonumber field and Alias has the PK as a ForeignKey (FK) LongInteger field. The best way to deal with a 1:M relationship is with a MainForm/SubForm scheme with the many side in the SubForm.

  3. #3
    brandonb is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2009
    Posts
    6
    How would I go about linking those forms? What commands do I put in and where? I have the forms setup but I cannot link the data (example: I put in the active record number but it does not call up and demographic or legal information).

    Can you help give me an example just using the Records (main form), Legal and Demographics tables/forms?

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    The LinkChild/MasterFields properties of the SubFormControl keep the SubForm in sync with the MainForm. Use the PK of the Master and the FK field of the SubForm. Access will insert the LinkChildField value when a new record is created in the SubForm.

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

Similar Threads

  1. Replies: 4
    Last Post: 04-01-2009, 08: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