Query in Form

J

JLDLS

I have created a project tracking database in Access 2007. I have seperate
tables/forms for clients and projects. The tables are linked by client name
(originates in the client table and is selected in the project table). On my
clients form I have added a tab that I would like to use to display all the
projects for that client. I am assuming that I will need to use a query in
the form to accomplish this. How do I get the query to instead of asking for
a name, to select the name of the curent open client in the form? Thanks.
 
C

CompGeek78

I have created a project tracking database in Access 2007.  I have seperate
tables/forms for clients and projects.  The tables are linked by clientname
(originates in the client table and is selected in the project table).  On my
clients form I have added a tab that I would like to use to display all the
projects for that client.  I am assuming that I will need to use a query in
the form to accomplish this.  How do I get the query to instead of asking for
a name, to select the name of the curent open client in the form?  Thanks.

Use a subform. On the properties of the subform there is a set of
properties: Master Link Field and Child Link Field. Set them to the
ClientID in the appropriate table and it will link them so whichever
client you have selected, the matching records will show in the
subform.

Keven Denen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top