Re: Field Name Query Help
- From: John Vinson <jvinson@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 20 Jul 2005 20:47:25 -0600
On Thu, 21 Jul 2005 01:12:56 GMT, TJ <tj@xxxxxxxx> wrote:
>John,
>
>I am storing Brand Names in a table called ToBrand. On a Form called Main
>Menu, there is a Combo Box linked to ToBrand. The user selects the ToBrand
>in the Combo Box, i.e. Brand1, Brand2, etc.
>
>The idea is that when a certain query runs, one of the fields in the query
>grid gets the ToBrand value from the Combo Box. The query queries a Table
>called Cross Detail which has 220K records and 12 fields of data. Some of
>the fields would be Brand1, Brand2, etc. The query would use the field in
>the Cross Detail Table based on the selection in the Combo Box.
Then as John Spencer says, your only choice is to build a SQL string
in code.
If you ever have to handle a thirteenth or fourteenth brand, what will
you do? Redesign your tables, all your queries, all your forms, all
your reports!? This design is simply incorrect; if you have a Many
(whatever) to Many (brands) relationship, you should have one RECORD
for each brand rather than one field.
John W. Vinson[MVP]
.
- Follow-Ups:
- Re: Field Name Query Help
- From: TJ
- Re: Field Name Query Help
- References:
- Field Name Query Help
- From: TJ
- Re: Field Name Query Help
- From: John Vinson
- Re: Field Name Query Help
- From: TJ
- Field Name Query Help
- Prev by Date: Re: Left Joins with Linked Tables
- Next by Date: Re: The query is too complex or can't open anymore databases
- Previous by thread: Re: Field Name Query Help
- Next by thread: Re: Field Name Query Help
- Index(es):
Relevant Pages
|
|