Solved

Subform Does not read recordset

Posted on 2013-10-23
2
400 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
2 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help writing a query 6 71
subtract 1 in Access 2003 query 7 36
data analyst 3 48
Linking a DMV to a database id/sql text in SQL server 2008 8 45
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

932 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

14 Experts available now in Live!

Get 1:1 Help Now