Parameter from a Form

Parker

Registered User.
Local time
Today, 17:49
Joined
Jan 17, 2004
Messages
316
Set paramiter from a displayed form

I am running a parameter query to calculate the total of some values displayed on a sub form.

The parameter used is the client ID for the main form in which the subform resides.

Is there a way I can get Access to set the parameter based on the record displayed instead of having to type it in each time and then display the resulting total on the form?

Thanks
 
Have the query reference the form field holding the clientID, so you don't have to type it in. Here is an article detailing that technique (and some others). It shows you how to reference a combo box, but referencing a different control is identical: Customizing Access Parameter Queries
 
Thanks DCX

exactly what I need

Pete
 

Users who are viewing this thread

Back
Top Bottom