No Results Being Displayed

mapat

Registered User.
Local time
Today, 12:35
Joined
Feb 2, 2007
Messages
176
Hello,
I am using ACCESS 2007.
I have a subformA inside the main form. I have the following 2 buttons: INBOX and SENT on the main form.
The idea is that when clicking on INBOX or SENT the results displayed on subformA should change (looking at different records) depending on which button I click on.

For instance,
The OnClick event of INBOX btn looks like this:
Me.subformA.SourceObject = qryINBOX
where qryINBOX is the following query:
SELECT tMessages.*
FROM tMessages
WHERE INBOX=True;

I use the same criteria for the SENT button, but when clicking on either button subformA shows no results at all. Am I looking at the right property (SourceObject)? Can anyone give me a hand on this?

Thank you very much for the help everyone.
 

Users who are viewing this thread

Back
Top Bottom