Results 1 to 5 of 5
  1. #1
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383

    Relationship and Union Query Problem.

    Ok, I am trying to use a Unique bank account for each check register. I want to open my table TReg and be able to see all of the transactions for ONLY the Bank Account associated with it.
    Each table/query is described under properties. My problem right now is I can't select a Bank Account for my check register because of my union query and it's one sided thingy! Can someone please take a look at my relationships and maybe the union query and advise? The Union query works fine like it is.It just prevents me from getting my end result.
    Attached Thumbnails Attached Thumbnails UnionQuery.jpg   Relationships.jpg   QRegB  Query.jpg  

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    What are you using UNION query for? UNION queries are not editable.

    The query design you show does not show TReg table nor the UNION query.

    Don't understand the issue.
    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
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    What I posted was a Union Query with the code.The query named QRegB has QRegA in it which uses the TReg table. If the query is not editable once it is made, then i either delete it, remake it or come up with something else.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    I still don't know your purpose for the UNION query. If it is not used in QRegB or QRegA, how does it relate to this issue?

    Since you show BankID as PK in TBanks linking to RegID field in TReg, I presume RegID is FK field. TReg doesn't have a primary key?

    Employees and TOthers don't show any relationship to TBanks and TReg.
    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
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    This db was originally part of a much vaster complex db I wrote a long time ago. I am trying to remember what I did and how and add it back into this db. If you don't feel like fooling with this I understand, I am probably your worst thorn in your side. I have created 2 totally new and "Non" "Unionized" queries. Will see if I can make the check register work.

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

Similar Threads

  1. Replies: 2
    Last Post: 11-19-2012, 10:54 AM
  2. Replies: 1
    Last Post: 01-20-2012, 04:31 PM
  3. Union query problem
    By andreei87 in forum Queries
    Replies: 5
    Last Post: 05-09-2011, 09:39 AM
  4. Union ALL problem
    By witooldas in forum Queries
    Replies: 1
    Last Post: 04-29-2011, 07:12 AM
  5. Relationship Problem?
    By j3lena in forum Database Design
    Replies: 1
    Last Post: 01-14-2011, 05:27 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