Results 1 to 4 of 4
  1. #1
    oas is offline Novice
    Windows Vista Access 2003
    Join Date
    Sep 2009
    Posts
    1

    please help to design a table

    Hi to all,
    i want to store many text file in a table. my table design is like the following:



    id filename
    a a.txt
    b b.txt
    and my all files are stored in a folder. now i want to soter the path of the file name (for example:c:\myfile\a.txt) in filename field and later i want to query the file by id field and want to display the content of the file.
    i would appreciate if anyone can please help me.


    regards,

  2. #2
    NassauBob's Avatar
    NassauBob is offline Not THAT Green
    Windows XP Access 2003
    Join Date
    Feb 2010
    Location
    Augusta, GA
    Posts
    61
    So, you do not want to store the actual file(s) in the database, just links to them?

    You can do this by setting the data type to OLE Object from table design view, and from datasheet view, right click the field into which you want to insert a link, and click Insert Object.... Select the Create from File option, and make sure you check the Insert Link checkbox, or you will import the whole file instead of a link.

    As far as displaying the file contents from a query, uhhhh....shrug

  3. #3
    zephyr13684 is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Feb 2012
    Posts
    1
    I'm very new to Access and am taking a class where I have to create a database. Can you tell me how you decide how many tables to create and how to separate the information between the tables?

  4. #4
    NassauBob's Avatar
    NassauBob is offline Not THAT Green
    Windows Vista Access 2007
    Join Date
    Feb 2010
    Location
    Augusta, GA
    Posts
    61
    Well, a table should be as close to a true representation as possible. For example, if you were storing data on employees, you would include such attributes as last name, first name, perhaps middle initial, date of birth, gender, if that was needed, etc. A special field called a primary key -> which you will learn about if you are taking a database class <- will ensure that each record in the table is unique.

    Now, if you were going to include family members of the employees, those should be listed under a separate table, but linked to the appropriate employee by use of a foreign key -> which you will also learn about if you are taking a database class.

    Hope this helps,

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

Similar Threads

  1. Attendance design
    By 8rxtx8 in forum Database Design
    Replies: 0
    Last Post: 07-19-2009, 04:42 AM
  2. Table design problem
    By wasim_sono in forum Database Design
    Replies: 0
    Last Post: 04-08-2009, 06:21 AM
  3. Relationship Design
    By krymer in forum Database Design
    Replies: 3
    Last Post: 11-28-2008, 09:09 PM
  4. Design help
    By marix in forum Database Design
    Replies: 1
    Last Post: 04-18-2007, 07:54 AM
  5. Design for productivity
    By code_warrior in forum Database Design
    Replies: 2
    Last Post: 06-18-2006, 08:05 AM

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