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

The Archive Base Latest Questions

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

I have a subform on a mainform. I want to have it open a

  • 0

I have a subform on a mainform. I want to have it open a query in datasheet view.
I tried:

Me.subform.Application.DoCmd.OpenQuery "xxx"

But it just opens the query in the background, not inside the subform.

I know that by creating a form bounded to this query, then I can change de subform’s SourceObject to open it inside the subform. However I have here many different queries, I just want to find a simpler way.

EDIT: Maybe something like: Me.subform.OpenQuery "xxx", but I didn’t find it.

  • 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:06:01+00:00Added an answer on May 23, 2026 at 3:06 pm

    Set the sub form’s Source Object to a query name instead of a form name. In the property sheet, it should look like Query.XXX.

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

Sidebar

Related Questions

I have a form with a subform in datasheet view, 2 fields Im working
I have Application X with Subform x1, x2, x3. The Subform has, because its
I have Application X (not mine!) with Subform x1, x2, x3. How can I
I have a sub form that looks like a datasheet view. It returns prices
In my application, I am using two forms mainform and subForm . The mainForm
I have a subform which displays the results from a saved query. Now I
I am a beginner in c#, I have two forms mainForm and subForm .
I have Access form with a subform. The subform has a datasheet. The main
I have a subform inside a parent form. The subform shows up as a
I have a form with a subform on it. If subform contains no records,

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.