Results 1 to 5 of 5
  1. #1
    mountainclimber is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jun 2015
    Posts
    56

    Break field out into separate table (aka normalize).

    Hello. I have created a test table Values1. I have a field in that table that has repeating string values. I am trying to break that field out into its own table with keys etc. (aka normalize).

    When I do this with the Analyze Table option under Database Tools, Analyze group, I get "Query input must contain at least one table or query" pop-up.

    Here is what I am doing:
    1) select table Values1 under tables on the right side "All Access Objects"
    2) Click Analyze Table in the ribbon at the top
    3) click on Values1 table in the list
    4) click next
    5) Check "no, i want to decide."
    6) click next
    7) select, drag, and drop the Report Ccy field out of the default table1
    8) Name it RptCcy
    9) click next and I get the pop-up "Query input must contain at least one table or query"



    Anyone have any suggestions?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I've never used that wizard. I'd simply create the new table with the desired fields, and run append queries to populate it using the original table (once for each repeating field).
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I've never used this tool. I generally avoid the design wizards.

    I would run sql actions and/or write VBA procedure to fix structure.

    If you want to provide db for analysis, follow instructions at bottom of my post.
    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
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I am a little confused.
    I have a field in that table that has repeating string values.
    If you have a table with 1 field that is not a primary key field, you could,would and should have "repeating string values".

    Would you explain further what you are trying to do?
    What is the table structure?
    What are the "repeating string values"?

    Further thinking, are you trying to move the "repeating string values" to a different table to create a "look up" table?
    A field in the "Values1" table would hold the FK to the look up table PK field?

  5. #5
    mountainclimber is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jun 2015
    Posts
    56
    Would you explain further what you are trying to do?
    see below

    What is the table structure?
    One table, with different fields imported from Excel. It has a primary key and it is called Values1. Values1 is a table that is not normalized. I pull one of the fields that should have its own table (because it is a field of strings that repeat like: a, a, z, c, z, etc... a and z are duplicated) and I get the issue I describe.

    What are the "repeating string values"?
    text, varchar, strings, non-numerics, etc... they are literally currency codes like USD and GBP the corrispond to that record (each record represents a stock ticker and the currency is the company's reporting currency).

    Further thinking, are you trying to move the "repeating string values" to a different table to create a "look up" table?
    A field in the "Values1" table would hold the FK to the look up table PK field?
    Exactly.

    Right now, I am assuming that is because my data isn't "clean". I suspect this because of the "Type conversion Failure" notices I am getting when I bring the table in without normalizing it. I am fixing those (since they have to be fixed anyway) to see if the issue is resolved.

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

Similar Threads

  1. Replies: 13
    Last Post: 12-23-2013, 09:20 AM
  2. break the link to a backend table
    By markjkubicki in forum Programming
    Replies: 1
    Last Post: 06-28-2013, 10:49 PM
  3. Replies: 11
    Last Post: 06-21-2012, 02:18 AM
  4. Replies: 3
    Last Post: 05-18-2012, 09:01 PM
  5. Replies: 8
    Last Post: 03-18-2012, 11:17 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