mulitple select list query

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I have a simple salesperson and sales history query.

How can I create a form and subform like the following:

Main form has the first select from salesperson to salesperson i.e. sales07
to slaes12, the second select from sales date to sales date i.e. 1/1/2005 to
6/30/2005

So, the subform will list sales07 to sales12 and the date will be 1/1/2005
to 6/30/2005

Thanks
 
Dear Newbie:

What do you mean, "select from salesperson to salesperson?" Are you
selecting a range of salespersons according to the alphabetical spelling of
their last names? How does a range of salespersons seem a reasonable way of
selecting persons? Or is that what you mean?

If you have the four values in controls (and the form on which these
controls exist is open) then you can have your query reference the values in
the four controls. Where you might otherwise put the values into the query
to filter this, place a reference to the control. That control reference is
of the form:

[Forms]![FormName]![ControlName]

Replace FormName and ControlName with the actual names of the Form and
Control you use. As long as this form is open and the values are present,
the query will work from that.

Tom Ellison
 

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

Back
Top