Results 1 to 5 of 5
  1. #1
    PurpleGod is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2015
    Posts
    6

    Using the Tab Control to create a new table.

    Hi there,



    I am a student and i'm taking a course on access 2010. I'v been stuck on this assignment for a long time and haven't found any help on the Internet. The assignment is due in 3 days, I have most of it finished, but I am stuck on one part. Here's what I need to do:

    Create a tab control, in a form, that when you add a new tab, it automatically creates a new table. In that table there are fields that should be automatically created as well.

    I know how to create a tab control in a form, and I also know how to link data from a table to a tab control. But I have NO IDEA how to create a new table (with fields) just by adding a new tab! Is this even possible? Please help!

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Sounds pretty crazy. Is it possible? Probably is ...

    Why don't you post, verbatim, the part of the assignment that is requesting the table to be created.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Very weird assignment. Don't see how it relates to real-world situation. Users should not be able to modify db structure (create tables, modify forms, etc). And implementing a procedure that routinely builds new tables smacks of non-normalized data structure.

    I have never tried to build code that would run from Design or Layout view. Since Access/VBA is event driven, just what event would this code be associated with?

    Suggest you challenge the instructor for more guidance.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    PurpleGod is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2015
    Posts
    6
    He showed us an example he created, doing exactly that. So I know it's possible :/ I might just have to take a 0 for this part cause I have no idea how to do this. I even tried integrating a module into my tab control but that was hopeless

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    So just how is user allowed to create the new 'tab'? Is this actually a Navigation form? I don't like and don't use.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 6
    Last Post: 11-18-2013, 04:50 PM
  2. create combo box on tab control
    By wnicole in forum Access
    Replies: 2
    Last Post: 10-13-2013, 10:22 AM
  3. Replies: 1
    Last Post: 05-20-2013, 01:45 PM
  4. Replies: 4
    Last Post: 06-30-2012, 02:01 AM
  5. Replies: 6
    Last Post: 03-14-2011, 09:37 AM

Tags for this Thread

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