Results 1 to 7 of 7
  1. #1
    Extracash is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    4

    Populating a form with table data!

    Folks,



    I am sure that this is simple for most of you, but I have not figured it out yet!

    I have an activity table that I want to add new records to using a simple form. The activity table has a relationship with a customer master table via the customer number.

    I would like to be able to use a combo box or some other technique to select the customer number and have Access pull data from the customer master table to populate the activity record. This allows me to use default data from the customer master record rather than to rekey the entries if there are no changes.

    How can I do this?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    All you need is a query that joins the two tables on the customer number field. You can then access any field in either table through the query.

  3. #3
    Extracash is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    4
    RuralGuy,

    I will give that a try this evening and let you know the results. Thanks!

  4. #4
    Extracash is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    4
    RuralGuy,

    In the form, I have an unbound combo box that allows me to scroll to the desired customer number. In the query for that same form, I tried to pass the combo box entry to the customer number for the master record to allow me to pull in the data. It does not work.

    Am I able to do all of this within the one form? I presume that I can.

    Thoughts?

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You should be able to set the Query as the RecordSource of the form instead of the table and your ComboBox should work. If the cbo does not work then use the wizard to create another cbo, selecting option #3.

  6. #6
    Extracash is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    4
    Thank you! I am good to go!

  7. #7
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    That's great! Are you ready to follow the link in my sig and mark this thread as Solved?

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

Similar Threads

  1. Auto Populating a field in a table
    By softspoken in forum Access
    Replies: 11
    Last Post: 04-05-2010, 02:52 PM
  2. Form data not populating in table
    By sabrown in forum Forms
    Replies: 0
    Last Post: 08-27-2009, 08:19 PM
  3. Replies: 4
    Last Post: 06-10-2009, 12:43 PM
  4. Populating Data in forms
    By cjbeck71081 in forum Forms
    Replies: 4
    Last Post: 01-16-2007, 04:15 PM
  5. Calculated Text Box Populating in Table
    By Debbie in forum Access
    Replies: 2
    Last Post: 11-13-2006, 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