Link Master/Child fields for a subform data source with multiple parameters?

Ask a Question related to Microsoft Access, Design and Development.

  1. #1

    Default Re: Link Master/Child fields for a subform data source with multiple parameters?

    On Mon, 21 Jul 2003 19:36:18 -0700, "Tim Cali" <cali_876@yahoo.com>
    wrote:
    >Can somebody explain why I would use LinkMasterFields and LinkChildFields
    >for a subform?
    Ordinarily one would do so to maintain relational integrity between a
    "one" side table on the mainform and a "many" side table on a subform.
    The link fields not only ensure that only linked records are displayed
    on the subform; it automatically fills in the "one" side linking value
    into the Foreign Key field in the subform's recordsource.
    >I have a form and a subform. To view data in the subform, I select 3 values
    >from 3 comboboxes on the main form, and then use those 3 values as the
    >parameters for the query, which is the subform's data source.
    View only? or edit? What about creating new subform records? Is the
    mainform bound or unbound?
    >So far, I have been requerying the subform data source during the
    >AfterUpdate event for each of the 3 comboboxes, which has worked as
    >expected. I see that I can also set these Master/Child links but I don't see
    >how this could help me.
    >
    >Can I set these Master/Child links in my case? Is there a difference? Any
    >further explanation is appreciated.
    If it's working, go for it. You might want to try it both ways to see
    if there's any performance difference; I wouldn't really expect there
    to be but I really don't know!

    John W. Vinson[MVP]
    Come for live chats every Tuesday and Thursday
    [url]http://go.compuserve.com/msdevapps?loc=us&access=public[/url]
    John Vinson Guest

  2. Similar Questions and Discussions

    1. Remove data from multiple fields with one delete
      I posted this question a couple of weeks ago to another site without a response so thought I'd try here. I have an Acrobat 7 for Mac form setup...
    2. Parent Child data in multiple datagrids
      I bet this is simple for those who have worked with the datagrid for while, I have a parent grid and a few child grids, i want to bind the...
    3. Link Child and Master Fields - error
      I've only been using Access for a week or two and have come across a frustrating problem... The description below is a simplified version of the...
    4. how to bind text box to data source fields
      Text box doesn't have 'DataSource' property. Is there any way where I can bind the text box to a data source field.? Thanks
    5. Subform listbox records don't reflect master/child link
      "Nick Mirro" <nickmirro@attbi.com> wrote: Nick, you have to update the list box when navigating through the main form. You can do this in...
  3. #2

    Default Re: Link Master/Child fields for a subform data source with multiple parameters?

    On Mon, 21 Jul 2003 21:26:57 -0700, "Tim Cali" <cali_876@yahoo.com>
    wrote:
    >Now that I've detached the mainforms binding
    >(which wasn't needed apparently), I can see that Access won't even let me
    >try to link Master/Child fields.
    Oddly enough, the combo box wizard and the dropdown list for entering
    Master Link Fields don't permit it, but you can in fact *type in* the
    names of the three combo boxes in the Master Link Field property.
    Putting the corresponding fields from the subform's recordsource will
    provide the link functionality.

    Thanks for the kind words!

    John W. Vinson[MVP]
    Come for live chats every Tuesday and Thursday
    [url]http://go.compuserve.com/msdevapps?loc=us&access=public[/url]
    John Vinson Guest

  4. #3

    Default Re: Link Master/Child fields for a subform data source with multiple parameters?

    Wow...cool. Thanks.

    "John Vinson" <jvinson@STOP_SPAM.WysardOfInfo.com> wrote in message
    news:qkiqhvssr0bincm60um6pad6u8npravnu5@4ax.com...
    > Oddly enough, the combo box wizard and the dropdown list for entering
    > Master Link Fields don't permit it, but you can in fact *type in* the
    > names of the three combo boxes in the Master Link Field property.
    > Putting the corresponding fields from the subform's recordsource will
    > provide the link functionality.


    Tim Cali Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139