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

Query: Two Tables - Need one result for qry rs 1

Status
Not open for further replies.

Dragunsfyre

Technical User
Apr 12, 2005
12
US
I have an Access 2000 database with two critical tables, tblClients and tblChildren. I am trying to generate a query which will produce a one record recordset for use with Word 2000 Mail Merge documents. The desired recordset would include the needed client information and the names and DOBs of each child. Each client in tblClients only has one record, each child in tblChild only has one record and they are linked by the primary key field, FileNumber. My problem is that some clients have no children, others have many.

How do I generate a query so that, if I enter FileNumber as my query parameter, I only get one record in my recordset(as opposed to the number of records equal to the number of children)? Also, I need to be able to count the children because my Word document needs to know how many there are.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top