Re: How do I add two table values and publish to a third table?



"=?Utf-8?B?UHJlbGx5YW4=?=" <Prellyan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
news:C6B59CBB-754B-413A-8F0E-7184D2E27906@xxxxxxxxxxxxx:

> (v1 in table A) + (v2 in table B) = (v3 in table C)
>
> Is there a quick way to do this.
>

Which v1, v2 and v3 values? There is one of each for every row in the
tables, so if you have 1000 rows in each table there are a billion ways
of answering this! At the moment, all you have described is that you want
to add NumberOfPassengers to PencePerKilogramme and store the answer in
DaysSinceDischarge.

Presumably you do have some way of joining all three tables together:
once you have done that, then the addition is a simple UPDATE query. Post
more information if you need further help.

B Wishes


Tim F



.



Relevant Pages

  • RE: Max value
    ... > update query but in this case I should put varible I really don't know ... FROM mytable AS inner ... Tim F ... Prev by Date: ...
    (microsoft.public.access.modulesdaovba)
  • Re: concatenate two fields to generate primary key?
    ... > I wanted this extra field ... > to be a value I could use when joining to other tables - is that still ... Tim F ... Prev by Date: ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Using Combo boxes
    ... Base the Form on your Classes table, not joining the Room table to it; ... the Room field should be updated using a combo box based on Rooms, ... you needn't include the Rooms table on the form's recordsource in ... Prev by Date: ...
    (microsoft.public.access.forms)
  • Re: Postal Code
    ... Tim ... >>I don't have a field that distinguishes the country of origin. ... >> state field that lists the abbreviation for the state or province. ... the update query would look something ...
    (microsoft.public.access.queries)
  • Re: Copy Record With VBA (Access 2000)
    ... taking bad design decision in the name of trying to ... "keep things simple" usually ends up in far more complication and error. ... Tim F ... Prev by Date: ...
    (microsoft.public.access.modulesdaovba)

Quantcast