Results 1 to 7 of 7
  1. #1
    Ash1402 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2012
    Posts
    14

    Can I have two tables in a single form?


    I am trying to take a subform and copy it into a regular main form but when I do the cells don't link up. I have tried changing the control source etc. but nothing really links too well.

    Is there a way to take a form with a subform and bring all of the subforms contents into the main form? What can I do to get the cells all working and submitting?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    We'll need a little more detail on the two tables. Do they have a relationship of any kind?

  3. #3
    Ash1402 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2012
    Posts
    14
    They didn't originally but I just made one between a form number. They could have a secondary relationship of a suffix number which makes up the unique identifier if that makes it easier. Essentially, one form keeps track of the records and another keeps track of where they are.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    So is it a 1:1 relationship or 1:m?

  5. #5
    Ash1402 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2012
    Posts
    14
    Access just shows a black line between them so I'm not sure what that means. I think it might be 1:1 though as there is only a single form but a multiple number of suffixes for said form based upon how many drop offs are received. All I did was drag the 'FORM' from one table to the 'FORM' in another table within the relationships panel and then click OK. I didn't edit the relationship settings.

    Thank you for helping me so far I am a noob at this stuff but I hope to learn more.

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Normally you would put the PrimaryKey value of one table (hopefully an AutoNumber) into a ForeignKey field of the 2nd table to establish the relationship. If you click on the LINE between the two tables and RightClick, you can look at the relationship.

  7. #7
    Ash1402 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2012
    Posts
    14
    Neither table has a primary key (I didn't design the database and it has been in use for over a decade now). I assume that the Form number and suffix combined create a unique identifier. It goes a little like this:

    There's a paper form with a five digit number on top which is sort of like an incremental number but sometimes forms are missing or not used which causes some forms to be entered out of sequence. Each form has a starting suffix of 1 up to however many deposits of the same item we have. So if a person brings 5 of said item in the form number would be in the database 5 times with a suffix of 1 through 5.

    Each instance of the suffix may be transferred to a different department which are inside of drop down boxes populated by a query to another table that contains the list of departments. For data entry purposes I would like it so that all of the fields are on one form from the two tables so that I can easily copy/paste or duplicate the data so there is no need to add it again if there happens to be 50+ suffixes.

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

Similar Threads

  1. 500 Tables Join as Single Table
    By Franklin in forum Access
    Replies: 2
    Last Post: 08-31-2012, 01:11 PM
  2. Replies: 1
    Last Post: 02-02-2012, 08:55 AM
  3. Replies: 14
    Last Post: 01-10-2012, 03:12 PM
  4. Table related to multiple tables by single ID
    By MrTumnus in forum Access
    Replies: 1
    Last Post: 11-17-2009, 02:05 PM
  5. Show two tables in single table
    By access in forum Forms
    Replies: 8
    Last Post: 06-11-2009, 11:57 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