Results 1 to 3 of 3
  1. #1
    HelenM is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    7

    Adding data to the main table via a sub form and viewing it on the subform

    Hi I have a set of subforms in a tabbed control. Each is based on a separate/linked one-to-many table and works OK. The database is a list of tasks and each task can have 0, one or many flights. The flights are thesefore in a sub form. However, there is a required field for that is a comment on all the flights. This comment field is therefore one to one and is in the main table. I need to have this comment on the same tab as the flights but can't seem to make it updatable. I've tried putting a control on the task tab and making it invisible, then referencing it from the flights tab, this displays but is not updatable. I've tried referencing the field in the table directly [Task Core Data]![Flight(s) Additional Comments:], but that just comes up with #Name. Do I need to base the subform on a query instead of a table?

  2. #2
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,740
    As I understand it, you want the same comment field to appear on all the tabs. To do this, you can put the comments textbox in the detail section of the main form under the tabs, not on the tabs. It will show "through" on all the tabs.

  3. #3
    NTC is offline VIP
    Windows 10 Access 2013
    Join Date
    Nov 2009
    Posts
    2,392
    in addition to the first reply; to be updateable the form's field must be bound directly to the table's field. In a form one can have multiple text fields bound to the same table field. Just add the first and then copy it. Then you can enter into any and they all change....

    For a field to be in the tab of a tab control then you have to shoe-horn it in with the sub form that sits there now. But it is very do-able. Working in tab controls such as adding a field takes a little getting use to - you have to get the hang of highlighting the sub frame and such......

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

Similar Threads

  1. Replies: 5
    Last Post: 10-18-2017, 09:36 AM
  2. Replies: 4
    Last Post: 01-18-2017, 12:41 PM
  3. Replies: 6
    Last Post: 06-24-2016, 06:59 AM
  4. Replies: 1
    Last Post: 07-10-2015, 06:38 PM
  5. Replies: 8
    Last Post: 05-30-2013, 05:06 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