Results 1 to 2 of 2
  1. #1
    OrlyE is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2014
    Posts
    1

    Unhappy Creating new tables

    Hello, all;


    Fairly new to Access, but have a working knowledge of Excel. I am working on a dataBase and I need to have it check if a set of tables exist based on the data of another table and if any do not exist create the table(s) based on a template. the caviat is that the data in one table are both names of tables and field in another.

    Table1 has fields named 'first name' and 'last name'; the data in that field is for example Peter Adams, John Smith. I need to check on start that the tables named PAdams, JSmith.and so on exist, if not create them from a table template with fields 'vacation', 'personal', 'sick, etc. also i need to check on startup that a table named Department exist; if not, create it with fields named PAdams, JSmith and so on.... is that possible? and can you guide me in the right direction?

    Thank You.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    This is not a good design for relational database. Should not have separate tables for each individual. Should be one table. Constantly modifying data structure will drive you nuts. Every time you add a table, will have to redesign or create new queries, forms, reports, code.

    Forget everything you know about Excel. Relational database is completely different animal. Maybe this will help http://www.rogersaccesslibrary.com/
    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. Creating a relationship between two tables
    By amyhannah in forum Database Design
    Replies: 2
    Last Post: 12-16-2013, 07:44 PM
  2. Creating a query using two tables
    By aubtiger14 in forum Queries
    Replies: 7
    Last Post: 12-05-2013, 02:18 PM
  3. Creating Tables
    By DAH2013 in forum Access
    Replies: 4
    Last Post: 11-18-2013, 04:39 PM
  4. Creating a form from 2 tables
    By JustLearning in forum Forms
    Replies: 3
    Last Post: 11-19-2012, 11:52 AM
  5. Creating tables from scripts
    By accesscoder in forum Import/Export Data
    Replies: 6
    Last Post: 10-18-2010, 04:42 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