Re: union query

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Sure, it is preferable to make the link between the main form and its
subform.

To regenerate the ranking, in a report, a text edit control has a property
called "Running Sum", set it to yes, and its control source to the constant
one (1). Properly set, you should then get the running sum of 1, 1+1, 1+1+1,
.... So there is no need to enter it, if you already have a field defining
the order in a unique way (so it is always printed in the same way,
hopefully).


Vanderghast, Access MVP

"New_Access" <New_Access@xxxxxxxxxxx> wrote in message
news:%23F$O0s9MIHA.5040@xxxxxxxxxxxxxxxxxxxxxxx
Thank's you both,
but bit more explanation.
Beetween my main form and my subform,do I need
to set Master link and Child link by using field Model
and Prod.Code?

And about 'The datetimestamp',can we just hide it but
it exist,so the user no need to fill it.Cause in my report
I need to dispaly no 1.2....5.
Please advice

Thank's before


"Michel Walsh" <vanderghast@VirusAreFunnierThanSpam> wrote in message
news:uvs9FG2MIHA.6108@xxxxxxxxxxxxxxxxxxxxxxx
Definitively not the way to go. No. All measures should (could) be in
ONE
table, a little bit like:

DateTimeStamp ModelRef Ampere Power Airflow ' fields
name
2000.01.01 08:08:00 1010 1.3 4.5 132
2000.02.01 08:12:00 1010 1.4 4.8 145
...
2000.01.01 10:11:00 1011 1.8 5.4 178
...
' data sample


Each model (machine, sampling) is only referred to through the field
ModelRef, as example.
Instead of numeral reading, 1, 2, 3, ... it is generally more robust to
use
a date_time_stamping: it gives an implicit ordering (through time) for
each
reading, and it also say 'when' the reading has been made. There is one
and
only one reading (ampere, power, airflow) per record.

You can fill the data with a form / subform user interface. The form
allows
you to point to the model (machine) for which you have to enter data, and
the sub-form allow you to fill this table with as many records as you
need,
supplying Ampere, Power and Airflow. The ModelRef value can be read from
the
main form (so no need, really, to re-enter it in the sub form) and if you
have no date_time_stamp value to be entered, have the actual date and
time
value, now, filling the stamp field 'by default'.


For your report, make a query that will join this table and the table for
all models (machines), make that query the source or the report, and, in
the
report, GROUP on models, and, in the detail section of each group, supply
the three values Ampere, Power and AirFlow. If you ORDER by
date_time_stamp,
on the report, you will get those records printed in that order, in the
details.


Vanderghast, Access MVP


"New_Access" <New_Access@xxxxxxxxxxx> wrote in message
news:OG4XznvMIHA.1164@xxxxxxxxxxxxxxxxxxxxxxx
Dear Mr.Dave,
Then you think I should have new below fields in my Spec_tbl :
- Actual Ampere 1
- Actual Ampere 2
- Actual Ampere 3
- Actual Ampere 4
- Actual Ampere 5
- Actual Power 1
- Actual Power 2
- Actual Power 3
- Actual Power 4
- Actual Power 5
- Actual Airflow 1
- Actual Airflow 2
- Actual Airflow 3
- Actual Airflow 4
- Actual Airflow 5

Doesn't it look like too complicated,and in a certain condition
there will be a second Spec_tbl I need.Cause there some model
work in two condition.
Thank's before



"Klatuu" <Klatuu@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5AAA3C0C-B157-4174-9F5F-038A08288407@xxxxxxxxxxxxxxxx
You don't need another table.
The model table would be in the main form and the specifications table
would
be in the subform. You would input your data there.
--
Dave Hargis, Microsoft Access MVP


"New_Access" wrote:

Thank's Mr.Dave,
But where do I need to input the inspection result?.
Do I need to create another table?
Hope you would like to help.


"Klatuu" <Klatuu@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:47C34F8C-2195-4E16-87BE-1CF06CE9D783@xxxxxxxxxxxxxxxx
You don't need a union query for this. What you need is a field
in
the
specifications table that contains the modle number the
specifications
belong
to. To do this correctly, you need a form/subform. The form's
record
source
should be the model table and the subform's record source should
be
the
specifications table.
--
Dave Hargis, Microsoft Access MVP


"New_Access" wrote:

Hi all,
I'm trying to create a database that contain electrical
performance of my companiy's product.As the objective,
at last I have a report look like below:

Model: OSC30TDS1 Prod.code: 71102
-------------------------------------------
Specification
------------------------------
Ampere Power Airflow
SampleNo 3 10 100
-------------------------------------------
1 2.4 8.7 89
2 2.6 8.8 90
:
5 2.1 8.5 87

I have:
1.Model_tbl with 1400 records.
2.Spec_tbl contain spec for each model

Untill that I'm still getting dizzy what should I do next.
I think I should build a Inspection result_tbl but not
sure how unit it by 'Model' and 'Prod.code' with a union
query and then build a form for inputting the data.

For every Prod.code I need to take 5 sample or less
Hope somebody like to help about union query or
show me another better way before I put my foot on
a wrong next steps.
Thank's before














.



Relevant Pages

  • Re: union query
    ... only one reading (ampere, power, airflow) per record. ... all models, make that query the source or the report, and, in the ...
    (microsoft.public.access.queries)
  • Re: union query
    ... make a query that will join this table and the table for ... the three values Ampere, Power and AirFlow. ...
    (microsoft.public.access.queries)
  • Re: union query
    ... Indeed, if this field is a repetition, move it to the right table to avoid ... - Actual Ampere 1 ... Actual Power 1 ... Actual Airflow 1 ...
    (microsoft.public.access.queries)
  • Re: union query
    ... make a query that will join this table and the table ... - Actual Ampere 1 ... Actual Power 1 ... Actual Airflow 1 ...
    (microsoft.public.access.queries)
  • SA, Zambia cut power supplies to Zim
    ... Zambia cut power supplies to Zim ... SOUTH Africa and Zambia have disconnected power to Zimbabwe because of its ... the report says Zimbabwe has thrown the arrangement into jeopardy. ... coal, sub-economic tariffs, lack of new investment and the vandalism of ZESA ...
    (soc.culture.zimbabwe)