Results 1 to 7 of 7
  1. #1
    vdspencer is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2016
    Posts
    3

    Added a new table to a database and cannot update tables by using queries

    I have used a database that I created for many years. I had to add a third table to the database and now I am unable to edit the new table through my queries. I can edit things from the two other tables but not the new one. Please help.

  2. #2
    jwhite is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2012
    Location
    North Carolina
    Posts
    349
    "How" are you unable to edit the table? What steps are you taking to make changes in it?

  3. #3
    vdspencer is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2016
    Posts
    3
    I can edit the table directly, but I need the query to link names with the new table so that I know which data goes with which name. In my preexisting queries and even new queries, i can edit the other tables but not the new table.

  4. #4
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    Post your query SQL code.

  5. #5
    jwhite is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2012
    Location
    North Carolina
    Posts
    349
    Most likely your query is Non-Updateable due to being too complex. I see this site is a free-for-all with anyone throwing in their responses like wildfire. I leave you to them.

  6. #6
    vdspencer is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2016
    Posts
    3
    Here is the SQL code: SELECT Name.[Active 16X], Name.Sex, Name.Part, Name.[First Name], Name.[Last Name], Attend16.[09/25/16], Attend16.[10/09/16], Attend16.[10/16/16], Attend16.[10/23/16], Attend16.[10/30/16], Attend16.[11/06/16], Attend16.[11/13/16], Attend16.[11/20/16], Attend16.[11/27/16], Attend16.[12/04/16], Attend16.[12/10/16], Attend16.[12/11/16R], Attend16.[12/11/16P]
    FROM (Name INNER JOIN Attend08 ON Name.NameID = Attend08.AttendID) INNER JOIN Attend16 ON (Name.Name09ID = Attend16.Attend16ID) AND (Attend08.Attend09ID = Attend16.Attend16ID)
    WHERE (((Name.[Active 16X])="Yes" Or (Name.[Active 16X]) Is Null))
    ORDER BY Name.[Active 16X] DESC , Name.Sex, Name.Part DESC , Name.[Last Name]
    WITH OWNERACCESS OPTION;

  7. #7
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    From the SQL post, this is what I see:

    * You have a table named "Name". "Name" is a reserved word in Access and shouldn't be used for object names.
    Here is a list of reserved words: http://allenbrowne.com/AppIssueBadWord.html

    * You have spaces in object names. Shouldn't have spaces in object names.....
    * You have special characters on object names (the "/"). Shouldn't have special characters (nor punctuation) in object names.....
    * Your tables have data as field names. "09/25/16" is data. To me, this means you are committing "spreadsheet".

    You added another table because you reached the maximum fields in a table limit? Because of the dates as field names, you have 52 fields per year? So 1 table is about 4.5 years??

    Committing "spreadsheet" means your tables are designed like a spreadsheet; the table design is not normalized. Having tables designed like spreadsheets causes a lot of problems in the dB (lots of headaches trying to get simple things done).


    ----------
    If you want to post your dB for analysis, make a copy of the dB, delete all of the data, do a "Compact and Repair", then Zip it.

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

Similar Threads

  1. Update, delete and insert queries between two tables
    By ideasfactory in forum Queries
    Replies: 5
    Last Post: 05-19-2015, 08:25 AM
  2. Replies: 17
    Last Post: 06-13-2014, 10:25 AM
  3. Can't Update Queries linke to SQL Tables
    By tdejournett in forum Queries
    Replies: 1
    Last Post: 09-26-2010, 09:58 PM
  4. Replies: 2
    Last Post: 04-04-2010, 06:14 PM
  5. Replies: 3
    Last Post: 01-21-2010, 08:10 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