Re: Parameter Query
From: Tom Ellison (tellison_at_jcdoyle.com)
Date: 09/13/04
- Next message: Ken D.: "Re: Formatting within CDate function"
- Previous message: Tom Ellison: "Re: AR ageing 120"
- In reply to: Neil Cash: "Parameter Query"
- Next in thread: Neil Cash: "Re: Parameter Query"
- Reply: Neil Cash: "Re: Parameter Query"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 13 Sep 2004 14:16:02 -0500
Dear Neil:
I don't expect this answer will make me very popular.
I think the first parameter should be served on a form in a combo box
with the "two more fields from that table" as additional columns in
the combo box, hidden from view if desired. These can then be
accessed from the query.
In most cases, it isn't good design to have several tables with the
same columns and then have to choose between them. Whenever possible,
just put them all into one table, distinguishing between them with an
additional column.
You could, however, use a value list combo box, or create a table with
the names of these tables. You would then code to build the SQL of
this query and execute it from there. This you will certainly not be
able to do with a parameter.
Tom Ellison
Microsoft Access MVP
Ellison Enterprises - Your One Stop IT Experts
On Mon, 13 Sep 2004 11:57:07 -0700, Neil Cash
<NeilCash@discussions.microsoft.com> wrote:
>This is going to be kind of hard to explain, so bare with me. I want to run
>a query with two parameter values which are entered by the user. The first
>value comes from one table (main table), which then in turn shows two more
>fields from that table. The second value is the name of another table
>(variable table). Which in turn shows three more fields of that table. Can
>Access link the variable table (all variable tables have the same field
>names) to the main table and run a query, when the variable table is defined
>by the user? I hope that was clear.
- Next message: Ken D.: "Re: Formatting within CDate function"
- Previous message: Tom Ellison: "Re: AR ageing 120"
- In reply to: Neil Cash: "Parameter Query"
- Next in thread: Neil Cash: "Re: Parameter Query"
- Reply: Neil Cash: "Re: Parameter Query"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|