Page 1 of 3 123 LastLast
Results 1 to 15 of 33
  1. #1
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727

    subform not autopopulating

    All,


    using access 2003; i have a subform that I want to autopopulate based combo box select id. ex. main form has invoice# and other data entry fields. I move to subform; select invoice # from combobox from previous records and I want multiple fields based on that record to autopopulate. i know how to make a field autopoplate on the main form but how do I do the same when I move to the subform. FYI. The subform is linked ( parent child) by the invoice number in the tables. Did I set up the subform wrong
    help please
    Thanks

  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
    What is the RecordSource of the SubForm? Do you have the InvoiceNumber as the LinkChild/MasterFields properties?

  3. #3
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727
    yes. I am having trouble turning the invoicenumber on the master to a combo box so that users can choose the invoice number they want. am i on the correct track?

  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
    It is better if the "Lookup ComboBox" is not bound and you display the InvoiceNumber in another control.

  5. #5
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727
    ok let me try. when it ask me what i want to see on the form; don't select invoice? instead make it an unbound combo box? thanks

  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
    Just add another ComboBox with the wizard and select Option #3.

  7. #7
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727
    option 3? When i go through the wizard there is no option 3. it ask do i want to choose list from table or query or do i want to input. i want to use table.

  8. #8
    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
    It sounds like your MainForm does not have a RecordSource. Why not?

  9. #9
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727
    but it does. the form is based on the table used for invoice dataentry. I probably need to begin again. My tables show a one to many relationship. two tables: one invoice and the other tracking info that can belong to an invoice. i have the form for the users to input invoice information. I created a tab control so they can switch from one form to another. i am trying to create a subform for the tracking info so users can enter data based on the cooresponding info from the invoice form. this is where I am having difficulty.

  10. #10
    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
    Hmm...maybe some pictures or posting a sample of the db would help. Wherever you tried to add the cbo does not have a RecordSource or you would have gotten an Option #3.

  11. #11
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727
    ok. see attached. also i can't seem to get the subform to view like i set it up in design view. when i view it in form view it comes out datasheet view. thanks

  12. #12
    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
    Are we talking about the frm_SMALLPACKAGEINPUTFORM form?

  13. #13
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727
    yes. i know i made copies but i was trying not to mess up what i had. thanks

  14. #14
    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
    When you switch the RecordSource of that form to a valid table then the cbo wizard shows Option#3. The ControlSource of the InvoiceNumber control is not valid either.

  15. #15
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727
    can you show me what I am doing wrong please. i can't get a visual. thanks

Page 1 of 3 123 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Autopopulating Forms
    By daniel.e.john in forum Access
    Replies: 3
    Last Post: 09-09-2011, 07:19 PM
  2. Replies: 7
    Last Post: 07-15-2011, 01:58 PM
  3. Replies: 1
    Last Post: 03-15-2011, 03:53 PM
  4. Write Code to Navigate from Subform to Subform
    By Swilliams987 in forum Programming
    Replies: 22
    Last Post: 02-04-2011, 11:30 AM
  5. Replies: 15
    Last Post: 11-09-2010, 04:27 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