Results 1 to 7 of 7
  1. #1
    JRodriguez is offline Novice
    Windows XP Access 2000
    Join Date
    Feb 2010
    Posts
    6

    Newbie_Tables_&_Relationships

    I am teaching myself to create a DB in order to track the logistics of trailers for my company.



    When creating tables I selected the wrong data types. When I attempt to change some of the Data Types I get the following msg

    You can't change the data type or field size of this field; it is part of one or more relationships.

    If you want to change the data type of this field, first delete it's relationships in the Relationships window.

    I've deleted Relationships in the Relationships window but still cannot change the data type.

    I'm sure this is something easy for someone who knows what they are doing. Any help will be valued and appreciated.

  2. #2
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    You cannot change some datatypes when the table column is populated with data.

  3. #3
    JRodriguez is offline Novice
    Windows XP Access 2000
    Join Date
    Feb 2010
    Posts
    6
    There are no data in the tables at this point. Should I just re-create the tables?

  4. #4
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    Fields in different tables must generally be of the same datatype. Maybe you're attempting to change the datatype of a field linked to another table.

    How did you delete the relationships in the relationship window. Click the "All Relatonships" icon in the relationships window to be certain your delete was effective.

    To delete a relationship, right-click the relationship (line) between two tables and a window will popup giving you two options, "Edit Relationship" or "Delete Relationship." Of course, select "Delete Relationship."

    If your table is a parent table, that is, has children, you cannot delete the table. So merely rebuilding the table may not be an option.

  5. #5
    JRodriguez is offline Novice
    Windows XP Access 2000
    Join Date
    Feb 2010
    Posts
    6
    Thank you very much for your help!

  6. #6
    Join Date
    Feb 2010
    Location
    London, UK
    Posts
    21
    When you delete the relationships make sure you save the changes. Also for certain data type you will not be able to change the type if you have data held. You could create a brand new table with the correct data types and then copy and paste the data from the old table. Otherwise use an append query.

  7. #7
    JRodriguez is offline Novice
    Windows XP Access 2000
    Join Date
    Feb 2010
    Posts
    6
    thank you all very much!!!

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

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