Different Subforms based on Query Criteria

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

  1. #1

    Default Different Subforms based on Query Criteria

    I am trying to create a "Workorder" form based on an equipment list and I
    want the subforms to be different based the "Type" field in the equipment
    table. How can I show or not show subforms (and position them?) based on
    that result?

    __________________________________________________ ________________ Deuce
    Sapp __________________________________________________ ________________


    Deuce Sapp Guest

  2. Similar Questions and Discussions

    1. Building Query criteria dynamically based on Form inputs
      I need to dynamically build a db query based on form inputs; this such a typical thing I am hoping someone can shortcut me to a more elegant...
    2. add new nav tab based on a query
      Hi, I am trying to generate a flash fourm with more then one tabs based on the result from the query. I used the repeater and all tabs come out...
    3. mysql select query with unusual criteria fails
      Here is the scope of what I need to do; want: enrollment_year allowed (even if null) all of ica criteria:
    4. listbox column property does not work in query criteria
      I have a form with 2 listboxes, (let's call them LB1 and LB2) and the contents of LB2 depend on the selection made in LB1. Both listboxes are...
    5. Highlight Text based on certain criteria
      The senario is that a user fills out a form specifying some keywords they want to search a knowledgebase for. For each article that comes back, the...
  3. #2

    Default Re: Different Subforms based on Query Criteria

    On Mon, 14 Jul 2003 21:12:55 -0400, "Deuce Sapp"
    <deuce@perceive.nospamnet> wrote:
    >I am trying to create a "Workorder" form based on an equipment list and I
    >want the subforms to be different based the "Type" field in the equipment
    >table. How can I show or not show subforms (and position them?) based on
    >that result?
    One efficient way to do this is to use just *one* Subform control, but
    change its SourceObject property to whichever form you need for this
    particular record. You'll need some VBA code in the AfterUpdate event
    of the control that picks the Type, and perhaps a consistant naming
    convention for the forms (or else store the formaname in the Types
    table).

    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

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