Solved

Subform Does not read recordset

Posted on 2013-10-23
2
404 Views
Last Modified: 2013-10-24
Hello Experts,

I have the following query qryDiscrepancies

SELECT tblReservations.*
FROM tblReservations
WHERE (((tblReservations.fldTripSubType)=[Forms]![frmDiscrepDetails]![txtTripID]));

Open in new window


Here frmDiscrepDetails is a parent form and with in it I have a subform, whose record source = qryDiscrepancies

However, when I load the parent form, the subform is empty, but while the parent form is still loaded if I run qryDiscrepancies I get the needed records in the query view, but never in the subform.

What am I doing wrong?
0
Comment
Question by:APD_Toronto
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 39596018
try removing the criteria in your query "qryDiscrepancies"

SELECT tblReservations.*
FROM tblReservations

then set the Master/Child Link property of the subform to

Master TripID
Child     fldTripSubType

you are not getting any records because the subform is loaded first before the main form..

or you can add a requery for the subform in the load event of the main form
0
 

Author Closing Comment

by:APD_Toronto
ID: 39597865
Thank you!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

749 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