Results 1 to 4 of 4
  1. #1
    mdavid is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    160

    Append Query no input field - what do I specify?

    Hi,


    I'm trying to populate a new table with an Append Query, some of the fields in the new table come from selecting fields from existing tables.
    But I also have new fields which are not selected, but the criteria condition uses existing tables.
    An example of what I'm trying to do in query design:

    Field: - blank
    Table: - blank
    Sort: - blank
    Append To: NewTable.FieldA
    Criteria: IIf(IsNull(InTable.FieldA), InTable.FieldB, InTable.FieldA)

    What do I need to specify in Field and Table? Or is the usie of Append Query wrong?

    Thanks for any help
    David

  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'm not entirely clear on what you're doing, but I suspect what you have in the criteria should be in the Field argument.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    mdavid is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    160
    I've googled a bit further and I understand I need to put the criteria in Field:

    Is this correct?

    Thanks Paul, just saw your reply confirming.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    No problem, post back if you're still stuck.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Append Query with an Attachment Field
    By KH Ahmed Bara in forum Queries
    Replies: 0
    Last Post: 04-09-2016, 04:18 AM
  2. Append Query - one field distinct
    By Rhubie in forum Queries
    Replies: 1
    Last Post: 03-28-2013, 11:46 AM
  3. Append query with update same field
    By mladen273 in forum Queries
    Replies: 1
    Last Post: 01-15-2013, 01:56 PM
  4. Replies: 3
    Last Post: 11-19-2012, 12:27 PM
  5. Replies: 3
    Last Post: 12-28-2010, 10:43 PM

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