Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Subform Does not read recordset

Posted on 2013-10-23
2
Medium Priority
?
408 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 2000 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

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
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 …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

715 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