Results 1 to 9 of 9
  1. #1
    Jim from Waconia is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2011
    Posts
    6

    Access Form not populating from tables

    Hello, I am developing a DB that has a Main form that is pulling information from two tables. The first table is info imported from Excel. The second table is additional information the Import table does not have. When I import, the table populates perfectly, but the form will not display any data until I enter data into the cells on the second table. The tables both have a Primary key of the standard Access (ID) default with a one to one relationship. There are no filters.



    Any ideas

  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
    Change to an OUTSIDE (probably LEFT) join.

  3. #3
    Jim from Waconia is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2011
    Posts
    6
    Quote Originally Posted by RuralGuy View Post
    Change to an OUTSIDE (probably LEFT) join.
    You mean a one to many relationship?

  4. #4
    Jim from Waconia is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2011
    Posts
    6

    Got it - in a Query

    Quote Originally Posted by Jim from Waconia View Post
    You mean a one to many relationship?
    I got it, you mean in the Query - I'll give it a try

  5. #5
    Jim from Waconia is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2011
    Posts
    6

    Primary key problem

    After setting the join, my records do all appear in the form, but; When you add info in the form that pushes into table 2, the record you entered it into, say record 10 appears in the table as the third record. So after saving and opening the form, the data you entered for record 10 is in record 2.

    Any ideas?

  6. #6
    Jim from Waconia is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2011
    Posts
    6
    Sorry the record appears as the third record not the second

  7. #7
    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
    Do you have the PrimaryKey of one table in the other table as a ForeignKey?

  8. #8
    Jim from Waconia is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2011
    Posts
    6
    How do I do a foreign key? I might have an idea, but what do you suggest?

  9. #9
    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
    Assuming an AutoNumber field as the PrimaryKey in table one then table two would have a LongInteger field with that same value in it as a ForeignKey.

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

Similar Threads

  1. Replies: 1
    Last Post: 03-02-2011, 03:08 PM
  2. Populating a form with table data!
    By Extracash in forum Forms
    Replies: 6
    Last Post: 09-13-2010, 05:47 AM
  3. PLEASE HELP - Two tables populating one form
    By intergnat1 in forum Forms
    Replies: 2
    Last Post: 03-17-2010, 07:20 AM
  4. Form data not populating in table
    By sabrown in forum Forms
    Replies: 0
    Last Post: 08-27-2009, 08:19 PM
  5. Self-populating one form from another
    By winter in forum Forms
    Replies: 7
    Last Post: 08-03-2009, 08:02 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