Solved

Get rid of ID prompt upon form open - MS Access

Posted on 2016-10-25
3
23 Views
Last Modified: 2016-10-25
I have a subform on a form.  The subform's record source is a query that retrieves all records where the Yes/No field's value is No (i.e. 0).

The table's key is the ID field.

When I open the form, I'm being prompted for a parameter value (a value for the ID field).  Therefore, only one record is populating the subform (after I enter a value).   I'm trying to get rid the prompt. When the form is opened, I just want the subform to be automatically populated with the results of my query.  The query works fine on it's own.  It doesn't prompt me for any input.  How come I'm being prompted when I try to display the query results in a subform and how to I get rid this behavior? Thank you.
0
Comment
Question by:dbfromnewjersey
  • 2
3 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 41858939
Make sure your Master and Child link fields are set correctly for the Subform Control object (on the main form).
0
 

Author Comment

by:dbfromnewjersey
ID: 41858981
And how do I do that?
0
 

Author Comment

by:dbfromnewjersey
ID: 41859418
Got it. Thanks.
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now