Re: query with crazy parameters

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



SELECT [Motors in Operation].WONUMBER, Outline.[XP#], Models.Model, [Stator
Assy].[Sta Winding Spec], Winding.W_NO, [Low hp winding test
data].Winding.W_NO, [Low voltage winding data].Winding.W_NO, [High voltage
winding data].W_NO, [High hp winding test data].Winding.W_NO
FROM ((((((Models RIGHT JOIN ([Motors in Operation] LEFT JOIN Outline ON
[Motors in Operation].OUTLINE = Outline.[Outline Number]) ON Models.Model =
Outline.Model) LEFT JOIN [Stator Assy] ON Models.[Stator Assembly] = [Stator
Assy].[Stator Wound Assy]) LEFT JOIN [Low hp winding test data] ON
Models.[Stator Assembly] = [Low hp winding test data].Winding.W_NO) LEFT JOIN
[Low voltage winding data] ON Models.[Stator Assembly] = [Low voltage winding
data].Winding.W_NO) LEFT JOIN [High hp winding test data] ON Models.[Stator
Assembly] = [High hp winding test data].Winding.W_NO) LEFT JOIN [High voltage
winding data] ON Models.[Stator Assembly] = [High voltage winding data].W_NO)
LEFT JOIN Winding ON [High voltage winding data].W_NO = Winding.W_NO
WHERE ((([Motors in Operation].WONUMBER)=[serial no]) AND (([Low hp winding
test data].Winding.W_NO) Like [motors in operation to stator assymbly]![sta
winding spec] & "*") AND (([Low voltage winding data].Winding.W_NO) Like
[motors in operation to stator assymbly]![sta winding spec] & "*") AND
(([High voltage winding data].W_NO) Like [motors in operation to stator
assymbly]![sta winding spec] & "*") AND (([High hp winding test
data].Winding.W_NO) Like [motors in operation to stator assymbly]![sta
winding spec] & "*"));


i want w_no for all 5 winding tables(winding, low voltage, high voltage, low
hp, and high hp)to be displayed. sta winding spec will match winding exactly
but in the other 4 the number will be followed by a h,l,a, or b --depending
if its high or low V or high or low hp. the problem i'm having is if there
are no mathching records in one of the tables, then no records are displayed.
i might be going about this all wrong.

also, the high/low voltages/hp are queries obtained from the original
winding table.this all came about because i want to store all windings in the
same table but i'm having a hard time retrieving different sets of test data
(ex. xxx-a and xxx-b) that would be shown on a single report.
--



"John Vinson" wrote:

> On Thu, 23 Jun 2005 05:15:01 -0700, turkey
> <turkey@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> >hi guys. . .
> >i have a query that asks for a parameter. one of the fields has criteria
> >like[table]![field]&"*". it is entered in the "or". does anyone have ideas
> >why this doesn't work? the field that asks for a parameter also has [serial
> >no] in the "or" as well.
>
> The syntax [table]! is invalid; you cannot refer to a table in that
> way.
>
> What's [table] mean in this context? Is it the name of a separate
> table, not part of the query? Could you post the SQL view of the query
> and indicate just what you expect it to accomplish?
>
> John W. Vinson[MVP]
>
.



Relevant Pages

  • Re: Driving LEDs with a battery pack
    ... Note that nowhere in the above equations is the transformer ... It's being used to boost the battery voltage as seen by the base ... rate of flux change that is 'seen' by the base winding as aiding the ... I'm short on these green LEDs, ...
    (sci.electronics.basics)
  • Re: Driving LEDs with a battery pack
    ... the induced voltage on the base winding ... So I think that saturation would be a problem, ... Assume the collector winding saturates the core. ... So the BJT is in deep saturation, ...
    (sci.electronics.basics)
  • Re: Driving LEDs with a battery pack
    ... the induced voltage on the base winding ... So I think that saturation would be a problem, ... Assume the collector winding saturates the core. ... So the LEDs are driven at a duty cycle of 80%. ...
    (sci.electronics.basics)
  • Re: 5B 255M amplifier?
    ... I presume you mean the heater voltage bump on the PC Speaker Hybrid ... task of winding them it will work out about twice the price of a pre- ... couple on an amp he built, check out his web sitehttp://members,aol.com/sbench101/. ... I did use a power transformer for OPT on the 6CW5 guitar amp, though, ...
    (rec.audio.tubes)
  • Re: Flyback regulator / transformer problems.
    ... I have essentially the same cct with a different transformer, and feedback components changed for a 5Voutput.The other outputs are not regulated, I have only wound the 5V winding and populated the pcb with the required components for 5V out so far. ... The drain voltage of the FET is going WAY to high.Up to about 800V spike. ... The switching frequency is about 100KHz.I am using a EC35 core with N27 material with a 0.5mm gap. ... drive gate with pulse generator at about ...
    (sci.electronics.design)