Results 1 to 2 of 2
  1. #1
    VictoriaAlbert is offline Novice
    Windows Vista Access 2010 64bit
    Join Date
    Apr 2011
    Posts
    16

    Fill in form header based on subform

    I have a main form with several pages that are filled with subforms. On the main form is a header, with some key information that I want displayed once entered in a subform.

    To be more specific, I have a subform where users can enter notes about a customer, and those notes are recorded as a memo field data type. Once those notes are written in the subform, I want them to appear in a "Customer Notes" box in the main form header.

    I tried Autofill with a combo box, but I ran into two problems. One, I don't want the user to have to select on the combo box, I want the notes to just appear. Two, the notes are saved as a memo, so combo box would not even let me select it. Would I do an After Update event on the Notes subform? If so, what would the code be? I am very new to programming. Also, what would I have as the Control Source for the text box in the Form Header?



    Any help would be greatly appreciated.

  2. #2
    kennejd is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    188
    On your main form header, do you want to display the most recent note from the subform? Or the note from the current subform record?

    If tied to the current subform record, on the on current event of the subform, try:
    me.parent.[notefield] = me.note. After parent, that might be a ! instead of '.'.

    If you want the last related customer note, you can try a dlast function in the control source of the note field on the main form.

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

Similar Threads

  1. Replies: 2
    Last Post: 02-25-2011, 03:56 PM
  2. Replies: 3
    Last Post: 01-13-2011, 03:53 AM
  3. Replies: 3
    Last Post: 02-17-2010, 02:29 PM
  4. Replies: 3
    Last Post: 02-05-2010, 10:10 AM
  5. Open form based on Subform criteria
    By Suzan in forum Programming
    Replies: 0
    Last Post: 04-25-2006, 02:28 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