Results 1 to 2 of 2
  1. #1
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581

    Put a value in a sub form from the main form


    I have a form [frmSchMonthly]. It has a combo box [cboMonthListID]. The form has a sub form [frmSchMonthlySubF]. The sub form has a field [SchMonth]. I want to fill [SchMonth] with information from the form's combo box [cboMonthListID]. I used: Forms!frmSchMonthly!frmSchMonthlySubF!SchMonth = Me.cboMonthListID.Column(1)
    It took me to the debugger.
    How do I get that value in the field I need it in?

  2. #2
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,821
    Hi

    IN the subform you can use an Unbound Control in the Header and use =[Parent]![cboMonthListID.Column(1)]

    Then name the Control "Monthly"

    Then on the after Update of the First Control on the Subform you can use this:-

    Me.
    [SchMonth] = Me.[Monthly]

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

Similar Threads

  1. Replies: 39
    Last Post: 07-28-2018, 12:27 PM
  2. Replies: 10
    Last Post: 07-05-2017, 11:31 AM
  3. Replies: 8
    Last Post: 09-14-2015, 09:38 PM
  4. Replies: 17
    Last Post: 08-22-2013, 08:22 AM
  5. Replies: 2
    Last Post: 11-13-2012, 02:11 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