Results 1 to 2 of 2
  1. #1
    Devwer is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    1

    Editing subform columns from main form combo box

    Hi!
    I'm trying to figure out what I need to do in order to use a combo box to edit a subform from the main form. Here's a picture:



    Basically, when I enter new Items, I want to click on the combo box to define which Mineral, then enter the Quantity in the text box. It should also display the quantity, if it already exists. As it stands, the combo box has the lookup list, but I can't figure out how to integrate it like I want.

    Here's how everything's related:



    And here's the table datasheet:


    I'm entering new items manually this way, but I would like to have a drop down box instead of typing it out each and every time. Perhaps I'm going about the form all wrong. Any ideas?

  2. #2
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481

    There are probably several ways of doing what you want and it isn't

    clear what you've tried so far, which it probably why you haven't gotten any answers. So I'll offer an observation or two.
    Selecting variables on the main form won't necessarily requery anything. In other words, you could select something that was already in the tables, but the form or subform would not look for it unless you do a requery. One thing you could do is have the 'onclick' event of your listbox or combobox alter or set a filter and do a requery. I'm talking about VBA code for this, but again, you can probably get results through the expression builder or macros.
    If the subform needs to requery, you will probably need to set the filter for the subform to refer to a (hidden?) textbox in the main form. I believe I've had problems trying to simply set the filter for the subform.
    You'll have to provide more detail to get any real help.

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

Similar Threads

  1. Replies: 3
    Last Post: 10-10-2011, 06:33 PM
  2. Assign Combo Box from Main form to Subform
    By tbassngal in forum Forms
    Replies: 5
    Last Post: 07-18-2011, 04:11 PM
  3. Subform Combobox based on Main form combo box
    By accessmom in forum Forms
    Replies: 5
    Last Post: 02-21-2011, 07:02 AM
  4. Replies: 5
    Last Post: 01-02-2011, 10:09 AM
  5. Replies: 0
    Last Post: 08-17-2008, 12:19 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