Results 1 to 5 of 5
  1. #1
    Annnnn is offline Novice
    Windows 10 Access 2007
    Join Date
    Feb 2018
    Posts
    17

    Using a union query to enter data

    Hi,
    I hope you guys can help me out with a probably simple question
    I have a union query that searches for a sample ID in two different tables. The results of this query is presented within a subform. Subsequently, I would like to be able to also enter data in one of the columns. I am able to do this in other subforms based on queries, but somehow with this form I am not able to do it. The only reason I could think of is that it is because it is a union query, is this true?




    And if so, is there a solution?

    Tnx!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Yes that is true.
    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
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    use of union queries is usually indicative of poor table design in that you are effectively using the table name as a field

    Why don't you have just one table with an extra column to include the table name (or to be more precise its meaning).

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Annnnn,
    Further to the comments so far, could you give readers an overview of your requirements in simple English -no database jargon?
    You mention UNION query, and subform -but no mention of the form, nor tables.
    You may get more focused responses once people understand what you are trying to accomplish with more info and context.
    Good luck with your project.

  5. #5
    Annnnn is offline Novice
    Windows 10 Access 2007
    Join Date
    Feb 2018
    Posts
    17
    Thanks guys,
    When I made the second table I already realized this was probably not the best option. I did this because I have old data where there are a few column that are different from the new table that I want to use.
    However it made it to complicated so I just merged the two columns and this solves a lot of the problems

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

Similar Threads

  1. Replies: 1
    Last Post: 09-01-2017, 10:28 AM
  2. Replies: 4
    Last Post: 08-09-2017, 12:06 PM
  3. Replies: 5
    Last Post: 08-09-2017, 01:16 AM
  4. Loss of data with Union Query
    By Comiccradle in forum Queries
    Replies: 12
    Last Post: 05-26-2014, 09:41 AM
  5. Union Query Duplicates data
    By Ray67 in forum Queries
    Replies: 2
    Last Post: 10-19-2012, 07:12 AM

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