Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I display query results on a continuous subform? 1

Status
Not open for further replies.

robojeff

Technical User
Dec 5, 2008
220
US

I have a form called search_frm which contains three fields:

a Documentation Type field (qDocType),
a Documentation Ref field (qDocRef),
and a Documentation Desc field (qDocDesc).

I have a search button that launches a query to Search for any
text that is typed into these form fields from my table (Doc_tbl).

Here is the SQL of my query:

Code:
SELECT Doc_tbl.Type, Doc_tbl.RefNum, Doc_tbl.CurrRev, Doc_tbl.Title, Doc_tbl.Link
FROM Doc_tbl
WHERE (((Doc_tbl.Type) Like "*" & Forms!search_frm!qDocType & "*") And ((Doc_tbl.RefNum) Like "*" & Forms!search_frm!qDocNum & "*") And ((Doc_tbl.Title) Like "*" & Forms!search_frm!qDocTitle & "*"));

I would like to display the results of my query in a continuous subform on my
main form so that it updates or disappears depending on the results whenever the
query runs, but not sure how to set this up and would appreciate any suggestions
an guidance on this task.

Thanks
 
Create a form based on your query and then include it in your main form.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks PHV-

One more question...
How do I launch my query so that this subform gets updated.
I have a button but for the event, I am not which DO.CMD to use...

 
Use the Requery method.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top