I have two tables with the same (value) fields and I need to add each field of the two tables together. My query does not work - can somebody help.
I am in Access 2000
S$ = "Select sum(total) as Ttotal,sum(seland) as Tseland,sum(sesea) as Tsesea,sum(meland) as Tmeland,sum(mesea) as Tmesea,sum(rotor) as Trotor,sum(glider) as Tglider,sum(motorglider) as Tmotorglider, sum(military) as Tmilitary,sum(ldgsday) as Tldgsday,sum(ldgsnight) as Tldgsnight,sum(night)as Tnight,sum(actualIF) as Tactualif,sum(simif) as Tsimif,sum(flightsim) as Tflightsim,sum(crossc) as Tcrossc, sum(pic) as Tpic,sum(sic) as Tsic,sum(dualrec) as Tdualrec,sum(instruct) as Tinstruct from hours union all previoushours"
Thanks
fordtran
I am in Access 2000
S$ = "Select sum(total) as Ttotal,sum(seland) as Tseland,sum(sesea) as Tsesea,sum(meland) as Tmeland,sum(mesea) as Tmesea,sum(rotor) as Trotor,sum(glider) as Tglider,sum(motorglider) as Tmotorglider, sum(military) as Tmilitary,sum(ldgsday) as Tldgsday,sum(ldgsnight) as Tldgsnight,sum(night)as Tnight,sum(actualIF) as Tactualif,sum(simif) as Tsimif,sum(flightsim) as Tflightsim,sum(crossc) as Tcrossc, sum(pic) as Tpic,sum(sic) as Tsic,sum(dualrec) as Tdualrec,sum(instruct) as Tinstruct from hours union all previoushours"
Thanks
fordtran