Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8357903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:37:59+00:00 2026-06-09T10:37:59+00:00

I haven’t a clue as to how to do this. I’m using Access 2007,

  • 0

I haven’t a clue as to how to do this. I’m using Access 2007, and coding in VBA and SQL.

Table A has Data, accounts and amounts. Users can use form B to access subsets of the data in A, say, all the rows with amounts between $50 and $100.

When the user is looking at a row, I need to know if there are any other rows with the same account that are excluded from their view. In other words, I need to know if there are rows visible in the parent that aren’t visible in the child.

I think a solution is to determine what filters are active on their view, and then I can use dcount to compare. I don’t know how to get at the filters that are active in their view, though. And there may be an easier way – I am out of my depth here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T10:38:00+00:00Added an answer on June 9, 2026 at 10:38 am

    Let us assume that TableA has a primary key ID. Using the current event for the FormB:

     Dim rs AS DAO.Recordset
    
     dAmt = Me.Amount
     sAcc = Me.Account 
    
     ''Get a list of visible IDs
     With Me.RecordsetClone
        .MoveFirst
    
         Do While Not .EOF
             If !Amount=dAmt And !Account=sAcc Then
                sIDs = sIDs & "," & .ID
             End If
             .MoveNext
         Loop
     End with
    
     ''Other IDs
     sSQL = "SELECT * FROM TableA "
          & "WHERE Amount = " & dAmt _
          & "Account = '" & sAcc _
          & "' ID Not In (" & Mid(sIDs,2) & ")"
    
     CurrentDB.CreateQueryDef("NewQ",sSQL")
     Docmd.OpenQuery NewQ
    

    The above is untested, and as it stands, will only run once, if it runs at all, because a new query is created, rather than an existing query being edited.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I haven't used the STL much before, but I started to on this huffman
I haven't been able to get this working and all of the sample code
I haven't seen this question anywhere else, I hope someone can help. I have
I haven't found any documentation on this or seen this done before, but is
I haven't worked with SQL Reporting much, however I have been trying to get
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
Haven't been coding in a bit, but took on a project for a friend.
I haven't found a definite answer to this yet. Lots of apps let you
Haven't found this in my search on Stackoverflow - I know I've seen a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.