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 6119443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:33:12+00:00 2026-05-23T15:33:12+00:00

I was tasked with creating a simple app to maintain a user’s collectibles collection

  • 0

I was tasked with creating a simple app to maintain a user’s collectibles collection using Access 2007. There were some requests, which I have created and implemented. Those being:

  1. One main form listing all of his collectibles
  2. That same main form has a tabbed control below, with each tab containing a subform that in effect “filters” data based on different criteria from the main form. For example, the 1st subform takes the name of the collectible figure in the main form, and displays all other records using that name in the subform. In other words, if the figure is “Darth Vader”, the subform would list all collectibles that have the name “Darth Vader”.

I have created the application as per user request, but there is one thing that is bothering both of us so far. The subform’s first record is the same as the main form. We both find that redundant, and annoying. Granted, my Access skills is weak at best, so this may be a simple fix, but is there a way to remove the duplicate record in the subform? I have tried implementing a where clause in the subform stating to not include the “Figure ID” in the main form. Problem is, it is acting like a Parameter prompt, asking for the main form’s FigureID when I open the subform, or the main form. If I type in the Figure ID, it works, but the prompt is something that is obviously not wanted.

FYI:

  1. The main form is based on a query that basically selects all records from the “Figures” table and other related tables
  2. The subform was created when I dropped the subform control onto the tab control, where I linked the necessary master and child fields
  • 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-05-23T15:33:13+00:00Added an answer on May 23, 2026 at 3:33 pm

    Say you have a form named frmMain. That form includes two fields in its record source: FigureID; and Figure_name. The form also includes a text box control named txtFigureID which is bound to the FigureID record source field.

    frmMain also contains a subform control based on a form named frmSub. The record source for frmSub also includes FigureID and Figure_name fields. The subform control’s link master/child field property is Figure_name. Therefore frmSub will display all the rows where Figure_name matches the corresponding value in the frmMain’s current record.

    Now, if you want frmSub to exclude the specific record (as identified by the unique FigureID value) which is the current record in frmMain, add a WHERE clause to frmSub’s record source query:

    WHERE FigureID <> Forms!frmMain!txtFigureID
    

    I’m only guessing here, but hope that description is close enough to your actual situation to be useful. If not, show us the SQL you’re using as the record source for your subform.

    Edit: You get the parameter prompt only when you first open frmMain. Afterwards, you can navigate between records in frmMain, and frmSub shows you only the records you want to see … without asking you again to supply a parameter value.

    The reason that happens is because the subform loads before its parent form … so a control on the parent form is not available when the subform loads.

    I think the cure may be to save the subform without the WHERE condition in its record source. Then, when the main form loads, it can re-write the subform’s record source to include the WHERE condition.

    So, in frmMain’s load event:

    Private Sub Form_Load()
        Dim strSql As String
        strSql = "SELECT FigureID, Figure_name FROM YourTable" & vbCrLf & _
            "WHERE FigureID <> Forms!frmMain!txtFigureID"
        Debug.Print strSql
        Me.subformControlName.Form.RecordSource = strSql
    End Sub
    

    Watch out for subformControlName. It’s a control, not a form. The subform control may have the same name as the form it contains. But it could be a different name.

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

Sidebar

Related Questions

I've been tasked with creating some shortcuts to the desktop when our app installs.
I've been tasked with creating a web app to be consumed by a mobile
I've been tasked with creating a list of all possibilities using data in 8
I'm using EpiServer CMS 5R2 on a new project. I've been tasked with creating
I'm new to visual basic and have been tasked with creating an app that
I have been tasked at re-creating an MS Access calendar in a winforms C#
I've been tasked with creating some sort of service that will take any e-mail
I am just learning Access and have been tasked with creating a database for
Ive been tasked with creating a intranet system that handles Employee requests for hardware,
I'm tasked with creating an application using XCode for OSX. This application needs to

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.