Results 1 to 8 of 8
  1. #1
    angie is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    232

    append query

    I am trying to use the append query to add records from one table to another.


    I keep getting the following error code: DUE TO VALIDATION RULE VIOLTIONS

    I have checked the allow zero length
    no fields are set to require.

    I don't know what I am missing

    Thnanks Angie

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Post your attempted SQL statement.
    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.

  3. #3
    angie is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    232
    INSERT INTO Proposals ( CustomerID, TotalAmountDue, ProposalDate, Originator, ProposalDescription, AcceptedBy, AcceptedDate, ProposalNotes, Address, Email, HoursQuoted, PaymentType )
    SELECT Proposal.CustomerID, Proposal.[Total Cost], Proposal.[Proposal Date], Proposal.Originator, Proposal.Proposal, Proposal.[Excepted By], Proposal.[Excepted Date], Proposal.[Proposals Notes], Proposal.Address, Proposal.Email, Proposal.[Hours Quoted], Proposal.[Payment Type]
    FROM Proposal;

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Are there any unique indexes in Proposals?

    You have tables named Proposals and Proposal?

    Why duplicate data between tables?

    Why are fields using "Excepted" in names? Why do field names have spaces in Proposal but not in Proposals? Best not to use spaces.
    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.

  5. #5
    angie is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    232
    the proposal table is old and I want to delete it but need the records added to proposals ( I have made corrections over the years )

    No unique indexes in proposals

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Shows solved - so you got it to work?
    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.

  7. #7
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    other thing to check is text field lengths.

    Your error message is incomplete in that it should tell you how many were rejected due to validation issues - is this all of the records? or just a few? if the latter it might help you pinpoint the problem if you can identify which records were rejected

    Also a bit concerned you have a field named the same as the table (proposal.proposal). I haven't seen any documentation to say you can't do this and if this is your 'old' table, then it has presumably not been a problem but I have heard this can cause similar issues to using reserved words (i.e generating misleading errors). Suggest take a copy of the table, change the field or table name and base your query on that.



  8. #8
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    Quote Originally Posted by angie View Post
    the proposal table is old and I want to delete it but need the records added to proposals ( I have made corrections over the years )

    No unique indexes in proposals
    Why not just rename the existing table and fields to what you want (no spaces/correct spelling etc). Doing that means no append query is needed
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

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

Similar Threads

  1. Replies: 19
    Last Post: 10-03-2017, 09:10 AM
  2. Replies: 1
    Last Post: 09-02-2015, 08:44 AM
  3. Access can't append all the records in the append query
    By fluffyvampirekitten in forum Access
    Replies: 2
    Last Post: 08-27-2015, 01:53 AM
  4. Replies: 1
    Last Post: 10-06-2011, 08:37 AM
  5. Replies: 7
    Last Post: 07-21-2011, 01:01 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