Results 1 to 4 of 4
  1. #1
    stapet is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Nov 2016
    Posts
    2

    Input data into a subForm Query

    I have a Main form with a unbound combo box that displays all distinct customers. When a customer is selected the subform displays all records for that Customer and allows for new data entry. Can I directly reference a field in the query to assign a value?



    I'd like to automatically assign the "CustomerID" in the subform, based on the Customer selected in the Main Form.

    Any help is appreciated!


  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    You'd put CustomerID field in both the main form and the sub form.
    AND link the subForm CustID to the main CustID using the subForm properties:
    link parent/master form,
    Link child form.

    enter CustID in both, THEN you can enter data direct into the subForm.

  3. #3
    stapet is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Nov 2016
    Posts
    2
    It doesn't let me link because the main form is not bound. There is just a Select statement behind the combo box? Is there a way to still link the forms?

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    BIND the master form, then it works.

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

Similar Threads

  1. Programming to Input Data into a SubForm
    By Edtheredhead in forum Forms
    Replies: 1
    Last Post: 03-31-2016, 11:09 AM
  2. Form Subform Data Input problems
    By Stan Denman in forum Forms
    Replies: 1
    Last Post: 09-15-2015, 02:36 PM
  3. Replies: 13
    Last Post: 02-26-2012, 08:28 AM
  4. Replies: 2
    Last Post: 06-17-2010, 04:15 PM
  5. Replies: 1
    Last Post: 06-14-2010, 02:31 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