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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form to display query results

Status
Not open for further replies.

kpdog9

IS-IT--Management
Feb 8, 2006
2
US
I created a query to pull data from a table of Towns and Quests...each town has multiple quests. The query tallys these correctly, but I want to display the individual results on my form. For Example I want a text box to show that shows 1 town and the number of quests for that town. In otherwords set the textbox equal to a field in Column, Row.
 
Code:
SELECT Count(Quests.QuestID) AS CountOfQuestID, Towns.TownID
FROM Quests
GROUP BY Quests.TownID;

Have fun! :eek:)

Alex Middleton
 
Will that allow me to pull data say only from cell C4 from my query?

Also how do I use code...do I just put that in the Control Source?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top