Creating form with tab controls

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

  1. #1

    Default Creating form with tab controls

    Hi,
    I created about 5 forms (custumors, invoices, ....)
    I would like to use now the access2 tab control form to switch between
    these forms.
    I was trying to copy each form in a tab control page...
    But this seems not to work...
    Any suggestions?
    THX
    Mike
    qpurser Guest

  2. Similar Questions and Discussions

    1. Really Creating dinamically Web Controls
      Hi everyone. I'm developing a custom control and i'm having some problems. Here goes the figure : I have a N level tree structure, and I have...
    2. flash form: how to align form controls in table manner
      Lets say that we have three columns and two rows and each cell have an input. I can align the inputs vertically using html table. How do I do it the...
    3. Creating Menu controls on the fly
      I am reading off menu items from an XML file. The problem I have is how to create these menu items into link buttons on the fly. As the number of...
    4. Creating Form Controls at Run-Time
      I would like to be able to create controls at run-time rather than at design time. Is there a function that I can override so that I can output...
    5. Creating controls at runtime
      Hi, I am trying to create a TextBox at runtime, using the following code with a CodeBehind-File: Dim txtBox As New...
  3. #2

    Default Re: Creating form with tab controls

    Mike,
    The most common mistake when placing forms/subforms on Tabs is
    "selecting" the appropriate tab before "pasting" the subform onto it. You
    can not "drag" a subform onto the Tab
    Place your subform on the form... anywhere.
    SELECT the subform and CUT it. (Shift-Del).
    SELECT the individual Tab that will contain this particular Subform.
    PASTE the Subform. (Shift-Insert)

    You should see the Subform appear on that Tab, and only that Tab.
    Continue the same process for the remaining subforms, pasting to a
    different tab each time.
    --
    HTH...
    Al Campagna
    Candia Computer Consulting
    Candia, NH


    <qpurser> wrote in message
    news:r68ugvof2gsskp7n83jrtd8jr0rag7i046@4ax.com...
    > Hi,
    > I created about 5 forms (custumors, invoices, ....)
    > I would like to use now the access2 tab control form to switch between
    > these forms.
    > I was trying to copy each form in a tab control page...
    > But this seems not to work...
    > Any suggestions?
    > THX
    > Mike

    ---
    Outgoing mail is certified by AVG 6.0 as Virus Free.
    Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
    Version: 6.0.493 / Virus Database: 292 - Release Date: 6/25/03


    Al Campagna Guest

  4. #3

    Default Re: Creating form with tab controls

    Thx for help.
    But it seems not working for me...
    My forms are not always realted to each other.
    Can each tab with his own form have a different source?
    The first tab is working...the rest won't let me edit or ad data...
    Mike







    On Fri, 11 Jul 2003 18:47:07 -0400, "Al Campagna"
    <alancamp1017@xtdl.com> wrote:
    >Mike,
    > The most common mistake when placing forms/subforms on Tabs is
    >"selecting" the appropriate tab before "pasting" the subform onto it. You
    >can not "drag" a subform onto the Tab
    > Place your subform on the form... anywhere.
    > SELECT the subform and CUT it. (Shift-Del).
    > SELECT the individual Tab that will contain this particular Subform.
    > PASTE the Subform. (Shift-Insert)
    >
    > You should see the Subform appear on that Tab, and only that Tab.
    > Continue the same process for the remaining subforms, pasting to a
    >different tab each time.
    qpurser Guest

  5. #4

    Default Creating form with tab controls

    >-----Original Message-----
    >Hi,
    >I created about 5 forms (custumors, invoices, ....)
    >I would like to use now the access2 tab control form to
    switch between
    >these forms.
    >I was trying to copy each form in a tab control page...
    >But this seems not to work...
    >Any suggestions?
    >THX
    >Mike
    >.
    >hi mike.
    first of all, if you're trying to literally copy the
    subform object in the database window and then paste it
    into the main form, you're right - it won't work.

    but getting the subform into the main form really is a
    simple drag and drop operation. here's how:

    1. create the TabControl on the main form (if you haven't
    already done so).
    2. restore the form design window, so you can see the
    database window behind it.
    3. while still in the main form design window, click on
    the specific tab you want to place the subform on, so that
    tab is selected.
    4. in the database window, click on the subform and drag
    it into the main form design window, taking care to drop
    it directly on the tab page. you'll know you're on target
    when the interior of the tab page turns solid black,
    before you "drop" the subform.

    if you still have trouble getting it to work, you can
    email me and i'll help you out. to answer your second
    posted question, yes - each subform can have it's own
    record source, and run independently from the main form.
    you can have both "child" subforms and independent
    subforms on a main form. the tab pages themselves do not
    have record sources, of course.
    tina Guest

  6. #5

    Default Re: Creating form with tab controls

    Hi Tina,
    Thx for offering to help me.
    I tried your suggestions but it seems not to work.
    Perhaps I need to explain a little more.

    My intention of the whole thing with these tab controls is to create
    some kind of menu (like a switchboard)
    I have created 4 forms (all with events), but I guess when I figure
    out how the first two work I can do the others by myself.
    - Customers (the form has combo box to lookup a customer and the
    results are displayed in a
    subform that displays the orders he did)
    - Orders ( the form has also a combobox where I lookup a customers
    information and in the
    subform I can ad new products he is ordering.
    - Products (in this form a lookup, ad and delete products)
    So I would like to have a tab control form with 4 tabs (1 for each
    form) so the user can easily switch between them.

    As you suggested I created the tab control form and dragged each of my
    forms in his own tab.
    The first tab works fine.
    On the others I can't get to work the combo boxes and I even can't ad
    records.
    Sometimes Access also crashes...

    I hope you are the brain here
    Regards,
    Mike


    On Sat, 12 Jul 2003 03:49:15 -0700, "tina"
    <californiadreamin7@arrowfm.com> wrote:
    >
    >>-----Original Message-----
    >>Hi,
    >>I created about 5 forms (custumors, invoices, ....)
    >>I would like to use now the access2 tab control form to
    >switch between
    >>these forms.
    >>I was trying to copy each form in a tab control page...
    >>But this seems not to work...
    >>Any suggestions?
    >>THX
    >>Mike
    >>.
    >>hi mike.
    >first of all, if you're trying to literally copy the
    >subform object in the database window and then paste it
    >into the main form, you're right - it won't work.
    >
    >but getting the subform into the main form really is a
    >simple drag and drop operation. here's how:
    >
    >1. create the TabControl on the main form (if you haven't
    >already done so).
    >2. restore the form design window, so you can see the
    >database window behind it.
    >3. while still in the main form design window, click on
    >the specific tab you want to place the subform on, so that
    >tab is selected.
    >4. in the database window, click on the subform and drag
    >it into the main form design window, taking care to drop
    >it directly on the tab page. you'll know you're on target
    >when the interior of the tab page turns solid black,
    >before you "drop" the subform.
    >
    >if you still have trouble getting it to work, you can
    >email me and i'll help you out. to answer your second
    >posted question, yes - each subform can have it's own
    >record source, and run independently from the main form.
    >you can have both "child" subforms and independent
    >subforms on a main form. the tab pages themselves do not
    >have record sources, of course.
    qpurser 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